summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStopAndContinue.py
diff options
context:
space:
mode:
authorFrancis Ricci <francisjricci@gmail.com>2017-04-11 19:57:12 +0000
committerFrancis Ricci <francisjricci@gmail.com>2017-04-11 19:57:12 +0000
commit84f17f32ad3561a0be9717733e320ecb8592b92f (patch)
treed33e6e917c80ea7a8bdcdf8f5fb4330a0b1cc007 /lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStopAndContinue.py
parent4bb0d78c843e8940b377b641d834d715774097e9 (diff)
downloadbcm5719-llvm-84f17f32ad3561a0be9717733e320ecb8592b92f.tar.gz
bcm5719-llvm-84f17f32ad3561a0be9717733e320ecb8592b92f.zip
Don't delete lsan thread-local data until it's no longer required
Summary: The routines for thread destruction in the thread registry require the lsan thread index, which is stored in pthread tls on OS X. This means that we need to make sure that the lsan tls isn't destroyed until after the thread registry tls. This change ensures that we don't delete the lsan tls until we've finished destroying the thread in the registry, ensuring that the destructor for the lsan tls runs after the destructor for the thread registry tls. This patch also adds a check to ensure that the thread ID is valid before returning it in GetThreadID(), to ensure that the above behavior is working correctly. Reviewers: dvyukov, kubamracek, kcc Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D31884 llvm-svn: 299978
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStopAndContinue.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud