diff options
| author | 2015-03-09 22:15:18 +0000 | |
|---|---|---|
| committer | 2015-03-09 22:15:19 +0000 | |
| commit | 54a8cc689dc23f346c9aac0d5fc6f47e61df8cad (patch) | |
| tree | 821954efb4addc26406dd6dc54a969e8e75c1f07 /compiler/driver/compiler_driver.cc | |
| parent | b3226684f0ee69094f896cb99a9d1f12585eac42 (diff) | |
| parent | 9b34b244ecddd8a35c922ed87bc3df0ca4db0282 (diff) | |
Merge "Trim arenas for JIT"
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
| -rw-r--r-- | compiler/driver/compiler_driver.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index d1291fa719..78dd6cc29e 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -2412,8 +2412,9 @@ bool CompilerDriver::SkipCompilation(const std::string& method_name) { std::string CompilerDriver::GetMemoryUsageString(bool extended) const { std::ostringstream oss; - const ArenaPool* arena_pool = GetArenaPool(); - gc::Heap* heap = Runtime::Current()->GetHeap(); + Runtime* const runtime = Runtime::Current(); + const ArenaPool* arena_pool = runtime->GetArenaPool(); + gc::Heap* const heap = runtime->GetHeap(); oss << "arena alloc=" << PrettySize(arena_pool->GetBytesAllocated()); oss << " java alloc=" << PrettySize(heap->GetBytesAllocated()); #ifdef HAVE_MALLOC_H |