[all-commits] [llvm/llvm-project] 41ba96: sanitizer_common: rename Mutex to MutexState

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Mon Jul 12 02:23:59 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41ba96f53127902ede26606e6f15a053b5f9c096
      https://github.com/llvm/llvm-project/commit/41ba96f53127902ede26606e6f15a053b5f9c096
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-07-12 (Mon, 12 Jul 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector2.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp

  Log Message:
  -----------
  sanitizer_common: rename Mutex to MutexState

We have 3 different mutexes (RWMutex, BlockingMutex __tsan::Mutex),
each with own set of downsides. I want to unify them under a name Mutex.
But it will conflict with Mutex in the deadlock detector,
which is a way too generic name. Rename it to MutexState.

Reviewed By: melver

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




More information about the All-commits mailing list