From 1ed4515facecea8dd5801eca752768043e4de01d Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Tue, 9 Apr 2019 18:10:26 +0100 Subject: 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 --- runtime/jit/debugger_interface.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/jit/debugger_interface.h') 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_ -- cgit v1.2.3-59-g8ed1b