platform_system_core/libbacktrace
Christopher Ferris 3a14004c7f Fix race condition updating local map data.
If the underlying local map changes, it's possible for multiple
threads to try and modify the map data associated with the UnwindLocalMap
object. Add a lock when generating the local map to avoid this problem.

In addition, add a read lock whenever any caller gets the maps iterator.
Updated all iterator callers to make this lock.

Bug: 29387050
Change-Id: Ie34822c3d8fd3bdb3dd126aeeb399969c36508c1
2016-06-16 23:28:11 -07:00
..
Android.build.mk libbacktrace: don't let llvm cflags cover libbacktrace's cflags. 2015-09-24 17:46:27 -07:00
Android.mk Remove invalid uses of -l and -I 2016-06-01 13:41:23 -07:00
Backtrace.cpp Add error reporting mechanism for failing Unwind. 2016-03-10 12:39:15 -08:00
BacktraceCurrent.cpp Add error reporting mechanism for failing Unwind. 2016-03-10 12:39:15 -08:00
BacktraceCurrent.h Discards frames for code within library. 2015-04-01 15:58:20 -07:00
BacktraceLog.h Modify the code to avoid potential deadlocks. 2015-06-01 13:51:51 -07:00
BacktraceMap.cpp Fix race condition updating local map data. 2016-06-16 23:28:11 -07:00
BacktraceOffline.cpp Fix google-explicit-constructor warnings. 2016-04-29 15:44:04 -07:00
BacktraceOffline.h Revert "Revert "Revert "Revert "Add BacktraceOffline for offline backtracing."""" 2015-09-22 04:46:57 +00:00
BacktracePtrace.cpp Remove PtraceRead error message. 2015-06-12 23:03:22 -07:00
BacktracePtrace.h Refactor the code. 2015-03-31 10:51:44 -07:00
GetPss.cpp Fix misc-macro-parentheses warnings in adb, debuggerd, libbacktrace. 2016-05-18 15:53:15 -07:00
GetPss.h Create an UnwindMapLocal object. 2014-04-03 14:19:24 -07:00
ThreadEntry.cpp Modify the code to avoid potential deadlocks. 2015-06-01 13:51:51 -07:00
ThreadEntry.h Modify the code to avoid potential deadlocks. 2015-06-01 13:51:51 -07:00
UnwindCurrent.cpp Add error reporting mechanism for failing Unwind. 2016-03-10 12:39:15 -08:00
UnwindCurrent.h Refactor the code. 2015-03-31 10:51:44 -07:00
UnwindMap.cpp Fix race condition updating local map data. 2016-06-16 23:28:11 -07:00
UnwindMap.h Fix race condition updating local map data. 2016-06-16 23:28:11 -07:00
UnwindPtrace.cpp Add error reporting mechanism for failing Unwind. 2016-03-10 12:39:15 -08:00
UnwindPtrace.h Refactor the code. 2015-03-31 10:51:44 -07:00
backtrace_offline_test.cpp Revert "Revert "Revert "Revert "Add BacktraceOffline for offline backtracing."""" 2015-09-22 04:46:57 +00:00
backtrace_test.cpp Fix race condition updating local map data. 2016-06-16 23:28:11 -07:00
backtrace_testlib.c Rewrite libbacktrace using C++. 2013-10-28 17:55:25 -07:00
thread_utils.c Remove libbacktrace definition of gettid. 2015-04-30 12:52:21 -07:00
thread_utils.h Fix libbacktrace host build. 2015-12-07 20:09:24 -08:00