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/compiler.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'compiler/compiler.h') diff --git a/compiler/compiler.h b/compiler/compiler.h index cd4c59101e..ba89cb1aed 100644 --- a/compiler/compiler.h +++ b/compiler/compiler.h @@ -25,6 +25,7 @@ namespace art { namespace jit { class JitCodeCache; + class JitLogger; } // namespace jit namespace mirror { class ClassLoader; @@ -76,7 +77,8 @@ class Compiler { virtual bool JitCompile(Thread* self ATTRIBUTE_UNUSED, jit::JitCodeCache* code_cache ATTRIBUTE_UNUSED, ArtMethod* method ATTRIBUTE_UNUSED, - bool osr ATTRIBUTE_UNUSED) + bool osr ATTRIBUTE_UNUSED, + jit::JitLogger* jit_logger ATTRIBUTE_UNUSED) REQUIRES_SHARED(Locks::mutator_lock_) { return false; } -- cgit v1.2.3-59-g8ed1b