Enable the on start user lifecycle thread pool.

Bug: 197257926
Test: atest UserLifecyleTests
Change-Id: I1cf8161fd25bff6565567ca13878ce0aa9e776fd
This commit is contained in:
Varun Shah
2021-11-08 17:37:06 -08:00
parent 287afa1901
commit 4a8b29b5ce

View File

@@ -73,7 +73,7 @@ public final class SystemServiceManager implements Dumpable {
private static final String USER_STOPPED = "Cleanup"; // Logged as onCleanupUser
// Whether to use multiple threads to run user lifecycle phases in parallel.
private static boolean sUseLifecycleThreadPool = false;
private static boolean sUseLifecycleThreadPool = true;
// The default number of threads to use if lifecycle thread pool is enabled.
private static final int DEFAULT_MAX_USER_POOL_THREADS = 3;
// The number of threads to use if lifecycle thread pool is enabled, dependent on the number of