summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objdump/embedded-source.test
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2019-03-28 01:51:33 +0000
committerJim Ingham <jingham@apple.com>2019-03-28 01:51:33 +0000
commit1432b9780b3ef1d4f5deab0258c71124b362898d (patch)
tree0c76803a55b3aa74c54056b5641d39155e6a5c0a /llvm/test/tools/llvm-objdump/embedded-source.test
parenta0a50a7a5b0ca4ad83b3f2a963b2e67e4254ed30 (diff)
downloadbcm5719-llvm-1432b9780b3ef1d4f5deab0258c71124b362898d.tar.gz
bcm5719-llvm-1432b9780b3ef1d4f5deab0258c71124b362898d.zip
Copy the breakpoint site owner's collection so we can drop
the collection lock before we iterate over the owners calling ShouldStop. BreakpointSite::ShouldStop can do a lot of work, and might by chance hit the same breakpoint site again on another thread. So instead of holding the site's owners lock while iterating over them calling ShouldStop, I make a local copy of the list, drop the lock and then iterate over the copy calling BreakpointLocation::ShouldStop. It's actually quite difficult to make this cause problems because usually all the action happens on the private state thread, and the lock is recursive. I have a report where some code hit the ASAN error breakpoint, went to compile the ASAN error gathering expression, in the course of compiling that we went to fetch the ObjC runtime data, but the state of the program was such that the ObjC runtime grubbing function triggered an ASAN error and we were executing that function on another thread. I couldn't figure out a way to reproduce that situation in a test. But this is an NFC change anyway, it just makes the locking strategy more narrowly focused. <rdar://problem/49074093> llvm-svn: 357141
Diffstat (limited to 'llvm/test/tools/llvm-objdump/embedded-source.test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud