Loading services/core/java/com/android/server/pm/BackgroundDexOptService.java +8 −1 Original line number Diff line number Diff line Loading @@ -144,11 +144,18 @@ public class BackgroundDexOptService extends JobService { if (DEBUG_DEXOPT) { Log.i(TAG, "Updating package " + pkg); } // Update package if needed. Note that there can be no race between concurrent // jobs because PackageDexOptimizer.performDexOpt is synchronized. // checkProfiles is false to avoid merging profiles during boot which // might interfere with background compilation (b/28612421). // Unfortunately this will also means that "pm.dexopt.boot=speed-profile" will // behave differently than "pm.dexopt.bg-dexopt=speed-profile" but that's a // trade-off worth doing to save boot time work. pm.performDexOpt(pkg, /* instruction set */ null, /* checkProfiles */ true, /* checkProfiles */ false, PackageManagerService.REASON_BOOT, /* force */ false); } Loading services/core/java/com/android/server/pm/PackageManagerService.java +6 −1 Original line number Diff line number Diff line Loading @@ -7196,9 +7196,14 @@ public class PackageManagerService extends IPackageManager.Stub { } } // checkProfiles is false to avoid merging profiles during boot which // might interfere with background compilation (b/28612421). // Unfortunately this will also means that "pm.dexopt.boot=speed-profile" will // behave differently than "pm.dexopt.bg-dexopt=speed-profile" but that's a // trade-off worth doing to save boot time work. int dexOptStatus = performDexOptTraced(pkg.packageName, null /* instructionSet */, true /* checkProfiles */, false /* checkProfiles */, getCompilerFilterForReason(causeFirstBoot ? REASON_FIRST_BOOT : REASON_BOOT), false /* force */); switch (dexOptStatus) { Loading Loading
services/core/java/com/android/server/pm/BackgroundDexOptService.java +8 −1 Original line number Diff line number Diff line Loading @@ -144,11 +144,18 @@ public class BackgroundDexOptService extends JobService { if (DEBUG_DEXOPT) { Log.i(TAG, "Updating package " + pkg); } // Update package if needed. Note that there can be no race between concurrent // jobs because PackageDexOptimizer.performDexOpt is synchronized. // checkProfiles is false to avoid merging profiles during boot which // might interfere with background compilation (b/28612421). // Unfortunately this will also means that "pm.dexopt.boot=speed-profile" will // behave differently than "pm.dexopt.bg-dexopt=speed-profile" but that's a // trade-off worth doing to save boot time work. pm.performDexOpt(pkg, /* instruction set */ null, /* checkProfiles */ true, /* checkProfiles */ false, PackageManagerService.REASON_BOOT, /* force */ false); } Loading
services/core/java/com/android/server/pm/PackageManagerService.java +6 −1 Original line number Diff line number Diff line Loading @@ -7196,9 +7196,14 @@ public class PackageManagerService extends IPackageManager.Stub { } } // checkProfiles is false to avoid merging profiles during boot which // might interfere with background compilation (b/28612421). // Unfortunately this will also means that "pm.dexopt.boot=speed-profile" will // behave differently than "pm.dexopt.bg-dexopt=speed-profile" but that's a // trade-off worth doing to save boot time work. int dexOptStatus = performDexOptTraced(pkg.packageName, null /* instructionSet */, true /* checkProfiles */, false /* checkProfiles */, getCompilerFilterForReason(causeFirstBoot ? REASON_FIRST_BOOT : REASON_BOOT), false /* force */); switch (dexOptStatus) { Loading