summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [TSan][Darwin] Avoid calling pthread_self() before libpthread is initializedJulian Lettner2019-12-161-1/+6
| | | | | | | | | | | | | | This skips calling `pthread_self` when `main_thread_identity` hasn't been initialized yet. `main_thread_identity` is only ever assigned in `__tsan::InitializePlatform`. This change should be relatively safe; we are not changing behavior other than skipping the call to `pthread_self` when `main_thread_identity == 0`. rdar://57822138 Reviewed By: kubamracek Differential Revision: https://reviews.llvm.org/D71559
* compiler-rt: Rename .cc file in lib/tsan/rtl to .cppNico Weber2019-08-011-0/+316
Like r367463, but for tsan/rtl. llvm-svn: 367564
OpenPOWER on IntegriCloud