Merge "Add the compile reason for the forceDexOpt method" into tm-dev

This commit is contained in:
Songchun Fan
2022-04-21 22:47:59 +00:00
committed by Android (Google) Code Review

View File

@@ -432,8 +432,8 @@ final class DexOptHelper {
// Whoever is calling forceDexOpt wants a compiled package.
// Don't use profiles since that may cause compilation to be skipped.
final int res = performDexOptInternalWithDependenciesLI(pkg, packageState,
new DexoptOptions(packageName,
getDefaultCompilerFilter(),
new DexoptOptions(packageName, REASON_CMDLINE,
getDefaultCompilerFilter(), null /* splitName */,
DexoptOptions.DEXOPT_FORCE | DexoptOptions.DEXOPT_BOOT_COMPLETE));
Trace.traceEnd(TRACE_TAG_PACKAGE_MANAGER);