diff options
author | 2019-04-09 18:10:26 +0100 | |
---|---|---|
committer | 2019-04-10 09:28:44 +0000 | |
commit | 1ed4515facecea8dd5801eca752768043e4de01d (patch) | |
tree | 3e16243e33dddbe1dd9ee7e918d8113b3855f4c1 /runtime/jit/debugger_interface.h | |
parent | 51d5a30592d1e6f6129cf8628178b201d345ce36 (diff) |
Fix flaky 137-cfi test.
Avoid modifying the native debug info while we are unwinding.
Bug: 111411286
Test: test.py --host -b -r -t 137-cfi
Change-Id: Ie5a173d0fb545011413fa0326135aa9c56006e8d
Diffstat (limited to 'runtime/jit/debugger_interface.h')
-rw-r--r-- | runtime/jit/debugger_interface.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/jit/debugger_interface.h b/runtime/jit/debugger_interface.h index 5bb4682d6c..19507b0f9a 100644 --- a/runtime/jit/debugger_interface.h +++ b/runtime/jit/debugger_interface.h @@ -27,6 +27,7 @@ namespace art { class DexFile; +class Mutex; class Thread; // This method is declared in the compiler library. @@ -60,6 +61,11 @@ void RemoveNativeDebugInfoForJit(Thread* self, const void* code_ptr); // Returns approximate memory used by debug info for JIT code. size_t GetJitMiniDebugInfoMemUsage(); +// Get the lock which protects the native debug info. +// Used only in tests to unwind while the JIT thread is running. +// TODO: Unwinding should be race-free. Remove this. +Mutex* GetNativeDebugInfoLock(); + } // namespace art #endif // ART_RUNTIME_JIT_DEBUGGER_INTERFACE_H_ |