[all-commits] [llvm/llvm-project] 7bd81f: tsan: don't save creation stack for some sync objects

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Mon Aug 2 04:30:38 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7bd81fe1831e909e762e2f1f5caaba154989d4a1
      https://github.com/llvm/llvm-project/commit/7bd81fe1831e909e762e2f1f5caaba154989d4a1
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-08-02 (Mon, 02 Aug 2021)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp
    M compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cpp
    M compiler-rt/lib/tsan/rtl/tsan_sync.cpp
    M compiler-rt/lib/tsan/rtl/tsan_sync.h
    M compiler-rt/lib/tsan/tests/unit/tsan_sync_test.cpp

  Log Message:
  -----------
  tsan: don't save creation stack for some sync objects

Currently we save the creation stack for sync objects always.
But it's not needed to some sync objects, most notably atomics.
We simply don't use atomic creation stack anywhere.
Allow callers to control saving of the creation stack
and don't save it for atomics.

Depends on D107257.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D107258




More information about the All-commits mailing list