commit | b76e0fdf1ef2767e2d4f0ced2886756ff9556b19 | [log] [tgz] |
---|---|---|
author | Fyodor Kupolov <fkupolov@google.com> | Mon Jan 30 13:28:25 2017 -0800 |
committer | Fyodor Kupolov <fkupolov@google.com> | Mon Jan 30 14:30:55 2017 -0800 |
tree | 4a557e0b2dd0c2606efea6531fc6c0c0e1ea3add | |
parent | 6e0be363cbff1f8e794a0aba13fdb0bfa03124a6 [diff] [blame] |
Read SystemConfig on a worker thread Also added lazy accessor for mBackgroundLaunchBroadcasts to give more time for SystemConfig init to finish. Test: manual Bug: 34809967 Change-Id: Iaba0ac61714d94e72d571f33cd22d8700b89bb31
diff --git a/services/core/java/com/android/server/SystemServerInitThreadPool.java b/services/core/java/com/android/server/SystemServerInitThreadPool.java index d196850..5cc9bfd 100644 --- a/services/core/java/com/android/server/SystemServerInitThreadPool.java +++ b/services/core/java/com/android/server/SystemServerInitThreadPool.java
@@ -44,7 +44,7 @@ private static SystemServerInitThreadPool sInstance; - private ExecutorService mService = ConcurrentUtils.newFixedThreadPool(2, + private ExecutorService mService = ConcurrentUtils.newFixedThreadPool(4, "system-server-init-thread", Process.THREAD_PRIORITY_FOREGROUND); public static synchronized SystemServerInitThreadPool get() {