summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-09-28 22:08:13 +0000
committerEric Fiselier <eric@efcs.ca>2016-09-28 22:08:13 +0000
commitea117bf9ad162950a1fdd527f8b75d1bdf22456b (patch)
tree15a1200a1f8fa5699cd0ad28e13e070b063483fe /clang/lib
parent392caa538dfa29757f8f1e8635508affab2b1072 (diff)
downloadbcm5719-llvm-ea117bf9ad162950a1fdd527f8b75d1bdf22456b.tar.gz
bcm5719-llvm-ea117bf9ad162950a1fdd527f8b75d1bdf22456b.zip
Mark libc++ internal globals with _LIBCPP_SAFE_STATIC.
This patch applies the _LIBCPP_SAFE_STATIC attribute to internal globals, most of which are locking primitives, in order to ensure that they can safely be used during program startup. This patch also fixes an unsafe static init issue with the global locks used to implement atomic operations on shared pointers. Previously the locks were initialized using a dynamically initialized pointer, so it was possible that the pointer was uninitialized. llvm-svn: 282640
Diffstat (limited to 'clang/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud