Files
swift-mirror/stdlib/public/Concurrency/ThreadSanitizer.cpp
Julian Lettner e1b82d852d Remove dlsym() lookup for TSan functions from common path (#36478)
* Move TSan function lookup out of the common path

Move TSan function lookup via `dlsym()` out of the common path.  The
TSan runtime will now call `__tsan_on_initialize()` which we can use to
initialize the TSan functions in the Swift runtime.

This avoids paying the cost of `dlsym()` in the common, non-TSan case.

Depends on: https://reviews.llvm.org/D98810

rdar://75493372

* Remove Windows code

Thread Sanitizer is not supported on Windows.

Co-authored-by: Julian Lettner <julian.lettner@apple.com>
2021-04-06 09:16:47 -07:00

1.4 KiB