[llvm-branch-commits] [NFC][TSan] Move RestoreStack before ScopedReport in ReportDestroyLocked (PR #228643)

Thurston Dang via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Oct 2 21:07:34 PDT 2026


================
@@ -563,27 +563,32 @@ void ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r) {
 
 void ReportDestroyLocked(ThreadState *thr, uptr pc, uptr addr,
                          FastState last_lock, StackID creation_stack_id) {
-  ScopedReport rep(ReportTypeMutexDestroyLocked);
-  // Release locks before symbolizing and outputting the report to avoid
-  // deadlocks.
+  Tid tid;
+  DynamicMutexSet mset;
+  uptr tag;
----------------
thurstond wrote:

Can these be moved into the scope below?

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


More information about the llvm-branch-commits mailing list