[all-commits] [llvm/llvm-project] 572930: [NFC][TSan] Move ObtainCurrentStack out of ThreadR...
Vitaly Buka via All-commits
all-commits at lists.llvm.org
Sat Oct 3 19:07:28 PDT 2026
Branch: refs/heads/users/vitalybuka/spr/nfctsan-move-obtaincurrentstack-out-of-threadregistrylock-scope
Home: https://github.com/llvm/llvm-project
Commit: 5729303d68d2a4ad588e6e4126ac477073e09b96
https://github.com/llvm/llvm-project/commit/5729303d68d2a4ad588e6e4126ac477073e09b96
Author: Vitaly Buka <vitalybuka at google.com>
Date: 2026-10-03 (Sat, 03 Oct 2026)
Changed paths:
M compiler-rt/lib/tsan/rtl/tsan_interface_ann.cpp
M compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cpp
Log Message:
-----------
[NFC][TSan] Move ObtainCurrentStack out of ThreadRegistryLock scope
ObtainCurrentStack only reads the current thread's shadow stack and
allocates a VarSizeStackTrace buffer, which does not require
ThreadRegistryLock (and already runs outside ThreadRegistryLock in
ReportRace, SignalUnsafeCall, and ReportErrnoSpoiling).
Move ObtainCurrentStack (and dummy_pc in ReportDeadlock) before
ScopedReport in ReportMutexHeldWrongContext, ReportMutexMisuse,
ReportDeadlock, and ReportDestroyLocked so the stack trace buffers also
outlive ScopedReport and OutputReport.
Assisted-by: Gemini
Pull Request: https://github.com/llvm/llvm-project/pull/228794
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list