OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Include stack traces for certain native processes in bugreport.
[android-x86/frameworks-native.git]
/
cmds
/
surfaceflinger
/
main_surfaceflinger.cpp
diff --git
a/cmds/surfaceflinger/main_surfaceflinger.cpp
b/cmds/surfaceflinger/main_surfaceflinger.cpp
index
6dbcf5c
..
28e58e4
100644
(file)
--- a/
cmds/surfaceflinger/main_surfaceflinger.cpp
+++ b/
cmds/surfaceflinger/main_surfaceflinger.cpp
@@
-21,5
+21,8
@@
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);
return 0;
}