diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2017-07-19 15:05:49 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2017-07-19 15:05:49 +0100 |
commit | 01db5f78f627cc64f80b0c0a4eedd0a3dc8b46ca (patch) | |
tree | d1ee9267408e2f4d777d28bfc3f65c480f7ecd3f /compiler/compiler.h | |
parent | c5b1b067fb91c10c75dd0e6dbfd91bebe74347d5 (diff) |
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
Diffstat (limited to 'compiler/compiler.h')
-rw-r--r-- | compiler/compiler.h | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |