Merge "Revert "Enable profile merging for post-OTA package verification"" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9b40edab61
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user