platform_system_core/libunwindstack/include/unwindstack
Christopher Ferris 56d0e07d70 Fix which maps to search for globals.
If multiple threads are unwinding at the same time, new maps that contain
the global variables for dex files and jit information are created. This
leads to threads creating more new maps that then get searched, then
more maps, then more searching until virtual address space exhaustion.

Fix this so that we only search maps that have a corresponding rw map that
could contain the global memory.

Small refactor to combine the code to search for global variables into
one class that both classes inherit from.

Modify unit tests for the new pattern checking.

Bug: 117761427

Test: Ran unit tests for libunwindstack/libbacktrace/simpleperf.
Test: Ran art 004-ThreadStress that used to fail.
Change-Id: I837ca6b9d0383100079de090bc7d019598e0cdfe
2018-10-17 14:23:10 -07:00
..
DexFiles.h Fix which maps to search for globals. 2018-10-17 14:23:10 -07:00
DwarfError.h Add error propagation into Unwinder/Elf objects. 2018-01-24 17:50:46 -08:00
DwarfLocation.h Cache DWARF location rules for a given pc. 2018-03-29 14:47:13 +00:00
DwarfMemory.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfSection.h Refactor the DwarfSection classes. 2018-06-27 14:52:21 -07:00
DwarfStructs.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
Elf.h Fix up the definition of Elf::GetInfo. 2018-10-12 11:29:06 -07:00
ElfInterface.h Be permissive about badly formed elf files. 2018-08-03 22:02:05 +00:00
Error.h Add error propagation into Unwinder/Elf objects. 2018-01-24 17:50:46 -08:00
Global.h Fix which maps to search for globals. 2018-10-17 14:23:10 -07:00
JitDebug.h Fix which maps to search for globals. 2018-10-17 14:23:10 -07:00
LocalUnwinder.h Add a specialized LocalUnwinder object. 2018-05-23 20:02:30 -07:00
Log.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
MachineArm.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
MachineArm64.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
MachineMips.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
MachineMips64.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
MachineX86.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
MachineX86_64.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
MapInfo.h Implement support for linker rosegment option. 2018-10-03 20:48:45 -07:00
Maps.h Add a specialized LocalUnwinder object. 2018-05-23 20:02:30 -07:00
Memory.h Implement support for linker rosegment option. 2018-10-03 20:48:45 -07:00
Regs.h libunwindstack: add Regs::Clone. 2018-04-20 13:23:20 -07:00
RegsArm.h libunwindstack: add Regs::Clone. 2018-04-20 13:23:20 -07:00
RegsArm64.h libunwindstack: add Regs::Clone. 2018-04-20 13:23:20 -07:00
RegsGetLocal.h Allow to get raw register data on all platforms. 2018-08-08 11:19:41 +01:00
RegsMips.h libunwindstack: add Regs::Clone. 2018-04-20 13:23:20 -07:00
RegsMips64.h libunwindstack: add Regs::Clone. 2018-04-20 13:23:20 -07:00
RegsX86.h libunwindstack: add Regs::Clone. 2018-04-20 13:23:20 -07:00
RegsX86_64.h libunwindstack: add Regs::Clone. 2018-04-20 13:23:20 -07:00
UcontextArm.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
UcontextArm64.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
UcontextMips.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
UcontextMips64.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
UcontextX86.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
UcontextX86_64.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
Unwinder.h Change the GetAdjustedRelPc to GetPcAdjustment. 2018-02-21 20:16:39 -08:00
UserArm.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
UserArm64.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
UserMips.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
UserMips64.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
UserX86.h Expose per arch headers. 2018-02-08 19:29:08 -08:00
UserX86_64.h Expose per arch headers. 2018-02-08 19:29:08 -08:00