summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallUserDefinedFunction.py
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-06-29 15:04:07 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-06-29 15:04:07 +0000
commit832d0420781083009f758e01f1df59e4a00003b9 (patch)
tree8794cd04d14be79af7692fd4f5bca373113ff5dd /lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallUserDefinedFunction.py
parenta99ccfce1a7e9c789c353e85dc8f2b1b90c34dbe (diff)
downloadbcm5719-llvm-832d0420781083009f758e01f1df59e4a00003b9.tar.gz
bcm5719-llvm-832d0420781083009f758e01f1df59e4a00003b9.zip
[ManagedStatic] Reimplement double-checked locking with std::atomic.
This gets rid of the memory fence in the hot path (dereferencing the ManagedStatic), trading for an extra mutex lock in the cold path (when the ManagedStatic was uninitialized). Since this only happens on the first accesses it shouldn't matter much. On strict architectures like x86 this removes any atomic instructions from the hot path. Also remove the tsan annotations, tsan knows how standard atomics work so they should be unnecessary now. llvm-svn: 274131
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallUserDefinedFunction.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud