From 649b976a00c1295e4c1bd2f8c317376f31e9858a Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 7 Mar 2013 15:32:47 -0800 Subject: [PATCH] limit number of extra binder threads in SF to 4 it should be enough and it makes debugging easier. Bug: 6609290 Change-Id: I2341e20cfcfde184fe1ed9b925215f8fa3481ced --- cmds/surfaceflinger/main_surfaceflinger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds/surfaceflinger/main_surfaceflinger.cpp b/cmds/surfaceflinger/main_surfaceflinger.cpp index 28e58e4b9..ce7fde0b6 100644 --- a/cmds/surfaceflinger/main_surfaceflinger.cpp +++ b/cmds/surfaceflinger/main_surfaceflinger.cpp @@ -20,9 +20,9 @@ using namespace android; int main(int argc, char** argv) { - SurfaceFlinger::publishAndJoinThreadPool(true); // When SF is launched in its own process, limit the number of // binder threads to 4. ProcessState::self()->setThreadPoolMaxThreadCount(4); + SurfaceFlinger::publishAndJoinThreadPool(true); return 0; }