swift
801e0905 - Add note to stop trying to fix compat tsan syms

Commit
2 years ago
Add note to stop trying to fix compat tsan syms I keep trying to fix the tsan symbol dance, avoiding duplicate symbols for initializing the tsan acquire and release function pointers. The idea this time was to expose an API from the runtime to return the function pointers for the compatibility library. This won't work because the compatibility library would need to backdeploy to a version of the library that doesn't have those symbols, so it would fail to link. Now, if I really wanted to increment the counter again, an idea might be to pull the swift_tsan_acquire/swift_tsan_release symbols out of the Swift concurrency runtime and make them into a toolchain static library which would get linked by the driver when doing an ASAN build. The sanitizer libraries are already shipped like this, so it wouldn't be too weird to do this.
Author
Parents
Loading