diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-03-09 11:30:17 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-03-09 14:25:02 -0700 |
commit | 9b34b244ecddd8a35c922ed87bc3df0ca4db0282 (patch) | |
tree | cb73f09a77a1ba58331eb299bb8dd1e6eafb6eaa /compiler/dex/quick | |
parent | 81d38f74219774d87389f83f23595ffc8fe814b1 (diff) | |
download | android_art-9b34b244ecddd8a35c922ed87bc3df0ca4db0282.tar.gz android_art-9b34b244ecddd8a35c922ed87bc3df0ca4db0282.tar.bz2 android_art-9b34b244ecddd8a35c922ed87bc3df0ca4db0282.zip |
Trim arenas for JIT
Moved arena pool into the runtime. Added arena trimming to arena
pool. When called, this madvises the used memory.
Changed the JIT compiler to trim arenas after compilation. Changed
the arena mmap name to dalvik-LinearAlloc.
Native PSS before:
80353 kB: Native
80775 kB: Native
78116 kB: Native
After:
73357 kB: Native
70181 kB: Native
70306 kB: Native
Bug: 17950037
Bug: 17643507
Bug: 19264997
Change-Id: I63e7a898fd6e909c2c677fa57b5917a7b1398930
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) || |