[all-commits] [llvm/llvm-project] 48cbcb: sanitizer_common: prohibit Mutex(LINKER_INITIALIZED)

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Wed Jul 28 06:09:58 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 48cbcb909d9b539680da6b3b8997e3620d085f4e
      https://github.com/llvm/llvm-project/commit/48cbcb909d9b539680da6b3b8997e3620d085f4e
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_mutex.h

  Log Message:
  -----------
  sanitizer_common: prohibit Mutex(LINKER_INITIALIZED)

Mutex does not support LINKER_INITIALIZED ctor.
But we used to support it with BlockingMutex.
To prevent potential bugs delete LINKER_INITIALIZED Mutex ctor.
Also mark existing ctor as explicit.

Depends on D106944.

Reviewed By: melver

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




More information about the All-commits mailing list