[compiler-rt] [LSan] Use exit caller SP for exit-triggerring leak checks (PR #195238)

Kunqiu Chen via llvm-commits llvm-commits at lists.llvm.org
Fri May 1 03:00:42 PDT 2026


================
@@ -41,10 +42,19 @@ namespace __lsan {
 // This mutex is used to prevent races between DoLeakCheck and IgnoreObject, and
 // also to protect the global list of root regions.
 static Mutex global_mutex;
+static atomic_uintptr_t exit_caller_sp;
----------------
Camsyn wrote:

Should we use `THREADLOCAL` here?

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


More information about the llvm-commits mailing list