Merge "Add the compile reason for the forceDexOpt method."

This commit is contained in:
Songchun Fan
2022-04-22 13:40:24 +00:00
committed by Gerrit Code Review

View File

@@ -13257,7 +13257,8 @@ public class PackageManagerService extends IPackageManager.Stub
// Don't use profiles since that may cause compilation to be skipped.
final int res = performDexOptInternalWithDependenciesLI(pkg, pkgSetting,
new DexoptOptions(packageName,
getDefaultCompilerFilter(),
REASON_CMDLINE,
getDefaultCompilerFilter(), null /* splitName */,
DexoptOptions.DEXOPT_FORCE | DexoptOptions.DEXOPT_BOOT_COMPLETE));
Trace.traceEnd(TRACE_TAG_PACKAGE_MANAGER);