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

Vitaly Buka via All-commits all-commits at lists.llvm.org
Sat Oct 3 19:27:46 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 13729747c5d03646f09a9f7bdecfe491254bead9
      https://github.com/llvm/llvm-project/commit/13729747c5d03646f09a9f7bdecfe491254bead9
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2026-10-04 (Sun, 04 Oct 2026)

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

  Log Message:
  -----------
  [NFC][TSan] Move RestoreStack before ScopedReport in ReportDestroyLocked (#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



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