Merge "Don't check if forward locked apps are used by others" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d9435ea051
@@ -138,9 +138,8 @@ class PackageDexOptimizer {
|
|||||||
boolean isProfileGuidedFilter = DexFile.isProfileGuidedCompilerFilter(targetCompilerFilter);
|
boolean isProfileGuidedFilter = DexFile.isProfileGuidedCompilerFilter(targetCompilerFilter);
|
||||||
// If any part of the app is used by other apps, we cannot use profile-guided
|
// If any part of the app is used by other apps, we cannot use profile-guided
|
||||||
// compilation.
|
// compilation.
|
||||||
// TODO: This needs to be refactored to be also checked when the target mode is
|
// Skip the check for forward locked packages since they don't share their code.
|
||||||
// profile-guided.
|
if (isProfileGuidedFilter && !pkg.isForwardLocked()) {
|
||||||
if (isProfileGuidedFilter) {
|
|
||||||
for (String path : paths) {
|
for (String path : paths) {
|
||||||
if (isUsedByOtherApps(path)) {
|
if (isUsedByOtherApps(path)) {
|
||||||
checkProfiles = false;
|
checkProfiles = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user