[all-commits] [llvm/llvm-project] 1b3489: tsan: add DynamicMutexSet helper

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Mon Oct 25 10:45:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1b348902ea86a3fb73a61837b1fb4aa78abf8a7e
      https://github.com/llvm/llvm-project/commit/1b348902ea86a3fb73a61837b1fb4aa78abf8a7e
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-10-25 (Mon, 25 Oct 2021)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_mutexset.cpp
    M compiler-rt/lib/tsan/rtl/tsan_mutexset.h
    M compiler-rt/lib/tsan/rtl/tsan_rtl_report.cpp

  Log Message:
  -----------
  tsan: add DynamicMutexSet helper

MutexSet is too large to be allocated on stack.
But we need local MutexSet objects in few places
and use various hacks to allocate them.
Add DynamicMutexSet helper that simplifies allocation
of such objects.

Reviewed By: melver

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




More information about the All-commits mailing list