be788d891d
Add a mutex in MapInfo, and a mutex in Elf. Lock the creation of an Elf file using the MapInfo mutex, and lock when calling Step, GetFunctionName, or GetSoname since they can modify information in the object. It might be beneficial to use a fine grained lock in the future. Change the Maps object to contain a vector of MapInfo pointers rather than the total objects. This avoids copying this data around. Add a test to libbacktrace to verify that sharing a map while doing unwinds in different threads works. Add concurrency tests in libunwindstack to verify the locking works. Add always inline to the RegsGetLocal arm and aarch64 functions. I had a case where clang did not inline the code, so make sure this is specified. Bug: 68813077 Test: New unit tests to cover the case. Passes all unit tests. Test: Ran a monkey test while dumping bugreports and verified that Test: no crashes in libunwind. Test: Remove the locking and verified that all of the concurrenty tests fail. Change-Id: I769e728c676f6bdae9e64ce4cdc03b6749beae03 |
||
---|---|---|
.. | ||
include/backtrace | ||
testdata | ||
.clang-format | ||
Android.bp | ||
Backtrace.cpp | ||
backtrace_benchmarks.cpp | ||
backtrace_offline_test.cpp | ||
backtrace_test.cpp | ||
backtrace_testlib.cpp | ||
backtrace_testlib.h | ||
BacktraceAsyncSafeLog.h | ||
BacktraceCurrent.cpp | ||
BacktraceCurrent.h | ||
BacktraceLog.h | ||
BacktraceMap.cpp | ||
BacktraceOffline.cpp | ||
BacktraceOffline.h | ||
BacktracePtrace.cpp | ||
BacktracePtrace.h | ||
GetPss.cpp | ||
GetPss.h | ||
thread_utils.c | ||
thread_utils.h | ||
ThreadEntry.cpp | ||
ThreadEntry.h | ||
UnwindCurrent.cpp | ||
UnwindCurrent.h | ||
UnwindMap.cpp | ||
UnwindMap.h | ||
UnwindPtrace.cpp | ||
UnwindPtrace.h | ||
UnwindStack.cpp | ||
UnwindStack.h | ||
UnwindStackMap.cpp | ||
UnwindStackMap.h |