Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5393cec authored by Alex Buynytskyy's avatar Alex Buynytskyy Committed by Android (Google) Code Review
Browse files

Merge "Remove mInstallLock from dexopt." into tm-dev

parents 63aeabb6 4a31aa12
Loading
Loading
Loading
Loading
+11 −15
Original line number Diff line number Diff line
@@ -358,9 +358,7 @@ final class DexOptHelper {
        }
        final long callingId = Binder.clearCallingIdentity();
        try {
            synchronized (mPm.mInstallLock) {
            return performDexOptInternalWithDependenciesLI(p, pkgSetting, options);
            }
        } finally {
            Binder.restoreCallingIdentity(callingId);
        }
@@ -429,7 +427,6 @@ final class DexOptHelper {
            throw new IllegalArgumentException("Unknown package: " + packageName);
        }

        synchronized (mPm.mInstallLock) {
        Trace.traceBegin(TRACE_TAG_PACKAGE_MANAGER, "dexopt");

        // Whoever is calling forceDexOpt wants a compiled package.
@@ -444,7 +441,6 @@ final class DexOptHelper {
            throw new IllegalStateException("Failed to dexopt: " + res);
        }
    }
    }

    public boolean performDexOptMode(String packageName,
            boolean checkProfiles, String targetCompilerFilter, boolean force,