From 01db5f78f627cc64f80b0c0a4eedd0a3dc8b46ca Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 19 Jul 2017 15:05:49 +0100 Subject: Pass the logger to the JIT compiler. To avoid effects of concurrent method entrypoints update, just pass the logger to the JIT compiler, which will invoke it directly with the pointer to the newly allocated code. Test: test.py --trace Change-Id: I5fbcd7cbc948b7d46c98c1545d6e530fb1190602 --- compiler/jit/jit_compiler.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'compiler/jit/jit_compiler.cc') diff --git a/compiler/jit/jit_compiler.cc b/compiler/jit/jit_compiler.cc index 28a3f1edae..5fdf9ff07c 100644 --- a/compiler/jit/jit_compiler.cc +++ b/compiler/jit/jit_compiler.cc @@ -184,10 +184,8 @@ bool JitCompiler::CompileMethod(Thread* self, ArtMethod* method, bool osr) { { TimingLogger::ScopedTiming t2("Compiling", &logger); JitCodeCache* const code_cache = runtime->GetJit()->GetCodeCache(); - success = compiler_driver_->GetCompiler()->JitCompile(self, code_cache, method, osr); - if (success && (jit_logger_ != nullptr)) { - jit_logger_->WriteLog(code_cache, method, osr); - } + success = compiler_driver_->GetCompiler()->JitCompile( + self, code_cache, method, osr, jit_logger_.get()); } // Trim maps to reduce memory usage. -- cgit v1.2.3-59-g8ed1b