Fix SystemServerInitThreadPool size on latest device.

During boottime, we have relaxed cpuset to allow all cores to be
used. This CL will give the thread pool higher chance to parallel
things.

Bug: 132974796
Test: Build
Change-Id: I2ce0f337ce76ea918c4cce071e4bb44830d3b82b
Signed-off-by: Wei Wang <wvw@google.com>
This commit is contained in:
Wei Wang
2019-05-20 15:53:09 -07:00
parent b899f8abdd
commit f349ccdad7

View File

@@ -45,7 +45,8 @@ public class SystemServerInitThreadPool {
private static SystemServerInitThreadPool sInstance;
private ExecutorService mService = ConcurrentUtils.newFixedThreadPool(4,
private ExecutorService mService = ConcurrentUtils.newFixedThreadPool(
Runtime.getRuntime().availableProcessors(),
"system-server-init-thread", Process.THREAD_PRIORITY_FOREGROUND);
private List<String> mPendingTasks = new ArrayList<>();