From 4a8b29b5ce06d17235f6f369f7d9f10b35f61e09 Mon Sep 17 00:00:00 2001 From: Varun Shah Date: Mon, 8 Nov 2021 17:37:06 -0800 Subject: [PATCH] Enable the on start user lifecycle thread pool. Bug: 197257926 Test: atest UserLifecyleTests Change-Id: I1cf8161fd25bff6565567ca13878ce0aa9e776fd --- services/core/java/com/android/server/SystemServiceManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/SystemServiceManager.java b/services/core/java/com/android/server/SystemServiceManager.java index c5b23790c918a..5cc5201046d0d 100644 --- a/services/core/java/com/android/server/SystemServiceManager.java +++ b/services/core/java/com/android/server/SystemServiceManager.java @@ -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