[all-commits] [llvm/llvm-project] 1d4a90: [NFC][TSan] Move RestoreStack before ScopedReport ...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Sat Oct 3 14:24:00 PDT 2026


  Branch: refs/heads/users/vitalybuka/spr/nfctsan-move-restorestack-before-scopedreport-in-reportdestroylocked
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d4a90f0ae1d2d3cfb33f554195aef6008bc10e6
      https://github.com/llvm/llvm-project/commit/1d4a90f0ae1d2d3cfb33f554195aef6008bc10e6
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2026-10-03 (Sat, 03 Oct 2026)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cpp

  Log Message:
  -----------
  [NFC][TSan] Move RestoreStack before ScopedReport in ReportDestroyLocked

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

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



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