[all-commits] [llvm/llvm-project] 14e306: tsan: use DCHECK instead of CHECK in atomic functions

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Wed Aug 4 04:24:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 14e306fa4b0fb72710f2b696602fc356de59175d
      https://github.com/llvm/llvm-project/commit/14e306fa4b0fb72710f2b696602fc356de59175d
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-08-04 (Wed, 04 Aug 2021)

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

  Log Message:
  -----------
  tsan: use DCHECK instead of CHECK in atomic functions

Atomic functions are semi-hot in profiles.
The CHECKs verify values passed by compiler
and they never fired, so replace them with DCHECKs.

Reviewed By: vitalybuka, melver

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




More information about the All-commits mailing list