Merge "Fix SystemServerInitThreadPool size on latest device." into qt-dev

This commit is contained in:
TreeHugger Robot
2019-05-21 02:16:26 +00:00
committed by Android (Google) Code Review

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<>();