diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-03-09 22:15:18 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-03-09 22:15:19 +0000 |
commit | 54a8cc689dc23f346c9aac0d5fc6f47e61df8cad (patch) | |
tree | 821954efb4addc26406dd6dc54a969e8e75c1f07 /compiler/dex/quick | |
parent | b3226684f0ee69094f896cb99a9d1f12585eac42 (diff) | |
parent | 9b34b244ecddd8a35c922ed87bc3df0ca4db0282 (diff) | |
download | android_art-54a8cc689dc23f346c9aac0d5fc6f47e61df8cad.tar.gz android_art-54a8cc689dc23f346c9aac0d5fc6f47e61df8cad.tar.bz2 android_art-54a8cc689dc23f346c9aac0d5fc6f47e61df8cad.zip |
Merge "Trim arenas for JIT"
Diffstat (limited to 'compiler/dex/quick')
-rw-r--r-- | compiler/dex/quick/quick_compiler.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/dex/quick/quick_compiler.cc b/compiler/dex/quick/quick_compiler.cc index 13a6d9d815..02d74a0691 100644 --- a/compiler/dex/quick/quick_compiler.cc +++ b/compiler/dex/quick/quick_compiler.cc @@ -628,12 +628,13 @@ CompiledMethod* QuickCompiler::Compile(const DexFile::CodeItem* code_item, DCHECK(driver->GetCompilerOptions().IsCompilationEnabled()); - ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); + Runtime* const runtime = Runtime::Current(); + ClassLinker* const class_linker = runtime->GetClassLinker(); InstructionSet instruction_set = driver->GetInstructionSet(); if (instruction_set == kArm) { instruction_set = kThumb2; } - CompilationUnit cu(driver->GetArenaPool(), instruction_set, driver, class_linker); + CompilationUnit cu(runtime->GetArenaPool(), instruction_set, driver, class_linker); CHECK((cu.instruction_set == kThumb2) || (cu.instruction_set == kArm64) || |