diff options
author | Sean Callanan <scallanan@apple.com> | 2017-07-25 17:33:37 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2017-07-25 17:33:37 +0000 |
commit | afc70ab3e204feb4b3e227d430b9ffa0be04e4e6 (patch) | |
tree | c840bb217631ac48407e6185e4213556268ba0be /lldb/packages/Python/lldbsuite/test/help/TestHelp.py | |
parent | dafea67abd711f40028e86e3cb361d5d3f63e292 (diff) | |
download | bcm5719-llvm-afc70ab3e204feb4b3e227d430b9ffa0be04e4e6.tar.gz bcm5719-llvm-afc70ab3e204feb4b3e227d430b9ffa0be04e4e6.zip |
[TypeSystem] Guard the global `ASTSourceMap` with a mutex
s_source_map in ClangExternalASTSourceCommon.cpp is unguarded
and therefore can break in multithreaded conditions. This can
cause crashes in particular if multiple targets are being set
up at once.
This patch wraps s_source_map in a function that ensures
exclusivity, and makes every user of it use that function
instead.
<rdar://problem/33429774> lldb crashes after "resume_off"
Differential Revision: https://reviews.llvm.org/D35083
llvm-svn: 308993
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/help/TestHelp.py')
0 files changed, 0 insertions, 0 deletions