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

Commit 437eb02e authored by Martin Stjernholm's avatar Martin Stjernholm Committed by Android (Google) Code Review
Browse files

Merge "Let DEXOPT_IDLE_BACKGROUND_JOB select dalvik.vm.background-dex2oat-*...

Merge "Let DEXOPT_IDLE_BACKGROUND_JOB select dalvik.vm.background-dex2oat-* system properties in ART Service."
parents 71db10f5 eabd24d1
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -300,9 +300,9 @@ public final class DexoptOptions {
        if ((mFlags & DEXOPT_BOOT_COMPLETE) != 0) {
            if ((mFlags & DEXOPT_FOR_RESTORE) != 0) {
                priority = ArtFlags.PRIORITY_INTERACTIVE_FAST;
            } else if ((mFlags & DEXOPT_IDLE_BACKGROUND_JOB) != 0) {
                priority = ArtFlags.PRIORITY_BACKGROUND;
            } else {
                // TODO(b/251903639): Repurpose DEXOPT_IDLE_BACKGROUND_JOB to choose new
                // dalvik.vm.background-dex2oat-* properties.
                priority = ArtFlags.PRIORITY_INTERACTIVE;
            }
        } else {
@@ -317,9 +317,6 @@ public final class DexoptOptions {
        //    We don't require it to be set either. It's safe when switching between old and new
        //    code paths since the only effect is that some packages may be unnecessarily compiled
        //    without user profiles.
        //
        // -  DEXOPT_IDLE_BACKGROUND_JOB: Its only effect is to allow the debug variant dex2oatd to
        //    be used, but ART Service never uses that (cf. Artd::GetDex2Oat in artd.cc).

        return new DexoptParams.Builder(convertToArtServiceDexoptReason(mCompilationReason), flags)
                .setCompilerFilter(mCompilerFilter)