summaryrefslogtreecommitdiff
path: root/compiler/jit/jit_logger.h
diff options
context:
space:
mode:
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
commit01db5f78f627cc64f80b0c0a4eedd0a3dc8b46ca (patch)
treed1ee9267408e2f4d777d28bfc3f65c480f7ecd3f /compiler/jit/jit_logger.h
parentc5b1b067fb91c10c75dd0e6dbfd91bebe74347d5 (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/jit/jit_logger.h')
-rw-r--r--compiler/jit/jit_logger.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/jit/jit_logger.h b/compiler/jit/jit_logger.h
index 460864e8a9..19be9aa88e 100644
--- a/compiler/jit/jit_logger.h
+++ b/compiler/jit/jit_logger.h
@@ -94,10 +94,10 @@ class JitLogger {
OpenJitDumpLog();
}
- void WriteLog(JitCodeCache* code_cache, ArtMethod* method, bool osr)
+ void WriteLog(const void* ptr, size_t code_size, ArtMethod* method)
REQUIRES_SHARED(Locks::mutator_lock_) {
- WritePerfMapLog(code_cache, method, osr);
- WriteJitDumpLog(code_cache, method, osr);
+ WritePerfMapLog(ptr, code_size, method);
+ WriteJitDumpLog(ptr, code_size, method);
}
void CloseLog() {
@@ -108,13 +108,13 @@ class JitLogger {
private:
// For perf-map profiling
void OpenPerfMapLog();
- void WritePerfMapLog(JitCodeCache* code_cache, ArtMethod* method, bool osr)
+ void WritePerfMapLog(const void* ptr, size_t code_size, ArtMethod* method)
REQUIRES_SHARED(Locks::mutator_lock_);
void ClosePerfMapLog();
// For perf-inject profiling
void OpenJitDumpLog();
- void WriteJitDumpLog(JitCodeCache* code_cache, ArtMethod* method, bool osr)
+ void WriteJitDumpLog(const void* ptr, size_t code_size, ArtMethod* method)
REQUIRES_SHARED(Locks::mutator_lock_);
void CloseJitDumpLog();