OSDN Git Service

Do not hold hash table lock while backtracing.
authorChristopher Ferris <cferris@google.com>
Sun, 12 Jul 2015 05:47:06 +0000 (22:47 -0700)
committerChristopher Ferris <cferris@google.com>
Mon, 13 Jul 2015 19:17:50 +0000 (12:17 -0700)
commit9fee99b06013787054a312449b94115038e2ad7c
treeae11f880964b8cf750dc46c5c71eba133de81923
parent65dd858239c4e32a5a1afbc14ac30dbcdd2a50a3
Do not hold hash table lock while backtracing.

There is a deadlock if holding the hash table lock while trying to do
a backtrace. Change the code so that the hash table lock is only held
while actually modifying either g_hash_table, or while modifying an
entry from g_hash_table.

Bug: 22423683
Change-Id: I604ea56f940f22e99da41ea4dcdf97bedaac268d
libc/bionic/malloc_debug_leak.cpp