Change the default background dexopt concurrency to 4. am: 350d7731a8 am: 11c8959243
Original change: https://android-review.googlesource.com/c/platform/art/+/2984931
Change-Id: I218b00f116773dc6f49438c6d092f9a95bb4f396
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/libartservice/service/java/com/android/server/art/ReasonMapping.java b/libartservice/service/java/com/android/server/art/ReasonMapping.java
index 7c64abf..2a1c81b 100644
--- a/libartservice/service/java/com/android/server/art/ReasonMapping.java
+++ b/libartservice/service/java/com/android/server/art/ReasonMapping.java
@@ -188,13 +188,14 @@
/**
* Loads the concurrency from the system property, for batch dexopt ({@link
- * ArtManagerLocal#dexoptPackages}), or 1 if the system property is not found or cannot be
- * parsed.
+ * ArtManagerLocal#dexoptPackages}). The default is tuned to strike a good balance between
+ * device load and dexopt coverage, depending on the situation.
*
* @hide
*/
public static int getConcurrencyForReason(@NonNull @BatchDexoptReason String reason) {
return SystemProperties.getInt("persist.device_config.runtime." + reason + "_concurrency",
- SystemProperties.getInt("pm.dexopt." + reason + ".concurrency", 1 /* def */));
+ SystemProperties.getInt("pm.dexopt." + reason + ".concurrency",
+ reason.equals(REASON_BG_DEXOPT) ? 4 : 1 /* def */));
}
}