android_system_core/libunwindstack
Christopher Ferris be788d891d Allow multiple threads sharing a map to unwind.
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
2017-11-28 15:20:38 -08:00
..
include/unwindstack Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
tests Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
tools Multiple bugfixes, small restructuring. 2017-10-20 11:15:32 -07:00
.clang-format Use the 2 space clang format for libunwindstack. 2017-03-21 10:41:45 -07:00
Android.bp Add support for only a .eh_frame. 2017-11-07 13:22:39 -08:00
ArmExidx.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
ArmExidx.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
AsmGetRegsX86.S Add full support for initing registers. 2017-07-11 12:15:54 -07:00
AsmGetRegsX86_64.S Add full support for initing registers. 2017-07-11 12:15:54 -07:00
Check.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfCfa.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfCfa.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfDebugFrame.h Add support for only a .eh_frame. 2017-11-07 13:22:39 -08:00
DwarfEhFrame.h Add support for only a .eh_frame. 2017-11-07 13:22:39 -08:00
DwarfEhFrameWithHdr.cpp Fix another nullptr dereference. 2017-11-08 11:04:48 -08:00
DwarfEhFrameWithHdr.h Add support for only a .eh_frame. 2017-11-07 13:22:39 -08:00
DwarfEncoding.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfError.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfMemory.cpp Fix another set of bugs. 2017-08-10 17:37:32 -07:00
DwarfOp.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfOp.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfSection.cpp Add support for only a .eh_frame. 2017-11-07 13:22:39 -08:00
Elf.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
ElfInterface.cpp Add support for only a .eh_frame. 2017-11-07 13:22:39 -08:00
ElfInterfaceArm.cpp If the pc is set to zero, the unwind is done. 2017-10-23 14:55:16 -07:00
ElfInterfaceArm.h Multiple bugfixes, small restructuring. 2017-10-20 11:15:32 -07:00
Log.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
Machine.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
MapInfo.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
Maps.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
Memory.cpp Add a method to share the process memory object. 2017-09-05 14:30:22 -07:00
Regs.cpp Merge changes I8f33830f,Icd2b891b,I8736ff5c,Iae6e342a 2017-10-24 04:03:18 +00:00
Symbols.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
Symbols.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
Ucontext.h Add signal handling to the register object. 2017-07-18 17:27:48 -07:00
Unwinder.cpp Move sp/pc not changing check into Unwinder. 2017-10-31 17:51:02 -07:00
User.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00