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

Vitaly Buka via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Oct 2 20:07:03 PDT 2026


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

Run RestoreStack in its own lock scope before constructing ScopedReport
in ReportDestroyLocked (matching ReportRace). This avoids acquiring
ScopedErrorReportLock or symbolizing the current stack if RestoreStack
fails, and avoids holding slot_lock and slot_mtx while populating the
ScopedReport.

Assisted-by: Gemini





More information about the llvm-branch-commits mailing list