diff options
author | 2024-07-29 17:01:35 +0800 | |
---|---|---|
committer | 2024-07-29 17:01:35 +0800 | |
commit | 8fd86be0bd99d39a9c2251b0da4f2a7ed7f9ec53 (patch) | |
tree | 6d060677490dc4eb5f1db877090832dcfe4fd694 | |
parent | 0684cb136901cfa92497237d1d042e3fae4a345f (diff) |
Startup methods should be compiled for non-low RAM devices
Fix non-low RAM devices check
Test: art/test.py -b --host
Change-Id: I0a11eae7270b975f01cacc8ff5fe51b6e2bf67cf
Signed-off-by: zhaoxuyang.6 <zhaoxuyang.6@bytedance.com>
-rw-r--r-- | dex2oat/driver/compiler_driver.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dex2oat/driver/compiler_driver.cc b/dex2oat/driver/compiler_driver.cc index bbf7ea5468..5399f1cd7e 100644 --- a/dex2oat/driver/compiler_driver.cc +++ b/dex2oat/driver/compiler_driver.cc @@ -437,7 +437,7 @@ static bool ShouldCompileBasedOnProfile(const CompilerOptions& compiler_options, // On non-low RAM devices, compile startup methods to potentially speed up // startup. - if (!result && Runtime::Current()->GetHeap()->IsLowMemoryMode()) { + if (!result && !Runtime::Current()->GetHeap()->IsLowMemoryMode()) { result = profile_compilation_info->IsStartupMethod(profile_index, method_ref.index); } |