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

Commit 94527bcf authored by Calin Juravle's avatar Calin Juravle Committed by Automerger Merge Worker
Browse files

Merge "Enable compiling dex files in isolation on low ram devices." into sc-dev am: dd3a5b7e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/15025721

Change-Id: Id346bcb9f892cb765a78c898b0ae25e8a5606c84
parents 33ac264b dd3a5b7e
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -324,6 +324,12 @@ void RunDex2Oat::PrepareCompilerRuntimeAndPerfConfigFlags(bool post_bootcomplete


    AddRuntimeArg(MapPropertyToArg("dalvik.vm.dex2oat-Xms", "-Xms%s"));
    AddRuntimeArg(MapPropertyToArg("dalvik.vm.dex2oat-Xms", "-Xms%s"));
    AddRuntimeArg(MapPropertyToArg("dalvik.vm.dex2oat-Xmx", "-Xmx%s"));
    AddRuntimeArg(MapPropertyToArg("dalvik.vm.dex2oat-Xmx", "-Xmx%s"));

    // Enable compiling dex files in isolation on low ram devices.
    // It takes longer but reduces the memory footprint.
    if (GetBoolProperty("ro.config.low_ram", false)) {
      AddArg("--compile-individually");
    }
}
}


void RunDex2Oat::Exec(int exit_code) {
void RunDex2Oat::Exec(int exit_code) {