From 25e0456b6ea13eba290b63ea88b6b7120ed89413 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 1 Mar 2016 13:17:58 +0000 Subject: Give the JIT its own arena pool to avoid lock contentions. Sharing it with the verifier and the class loader is not ideal, especially at startup time. bug:27398183 bug:23128949 Change-Id: I1b91663a13f6c5b33ad3b4be780d93eb7fe445b4 --- compiler/jit/jit_compiler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/jit/jit_compiler.cc') diff --git a/compiler/jit/jit_compiler.cc b/compiler/jit/jit_compiler.cc index 23601c39e4..79a6d38fc6 100644 --- a/compiler/jit/jit_compiler.cc +++ b/compiler/jit/jit_compiler.cc @@ -230,10 +230,10 @@ bool JitCompiler::CompileMethod(Thread* self, ArtMethod* method, bool osr) { } // Trim maps to reduce memory usage. - // TODO: measure how much this increases compile time. + // TODO: move this to an idle phase. { TimingLogger::ScopedTiming t2("TrimMaps", &logger); - runtime->GetArenaPool()->TrimMaps(); + runtime->GetJitArenaPool()->TrimMaps(); } total_time_ += NanoTime() - start_time; -- cgit v1.2.3-59-g8ed1b