[llvm-branch-commits] [compiler-rt] [asan] Install `pthread_atfork` (PR #75290)

Thurston Dang via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Dec 13 09:29:06 PST 2023


================
@@ -148,6 +148,30 @@ void PlatformTSDDtor(void *tsd) {
 }
 #endif
 
+void InstallAtForkHandler() {
+  auto before = []() {
+    if (CAN_SANITIZE_LEAKS) {
+      __lsan::LockGlobal();
+    }
+    // `_lsan` functions defined regardless of `CAN_SANITIZE_LEAKS` and do the
+    // job.
----------------
thurstond wrote:

Not sure what "and do the job" means.

https://github.com/llvm/llvm-project/pull/75290


More information about the llvm-branch-commits mailing list