[all-commits] [llvm/llvm-project] 3ef766: [scudo] Specify memory order while using atomic_co...

ChiaHungDuan via All-commits all-commits at lists.llvm.org
Thu Aug 3 15:16:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ef766addadd8324f58c0fda0301edcde2185cb3
      https://github.com/llvm/llvm-project/commit/3ef766addadd8324f58c0fda0301edcde2185cb3
  Author: Chia-hung Duan <chiahungduan at google.com>
  Date:   2023-08-03 (Thu, 03 Aug 2023)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/atomic_helpers.h
    M compiler-rt/lib/scudo/standalone/linux.cpp

  Log Message:
  -----------
  [scudo] Specify memory order while using atomic_compare_exchange

`atomic_compare_exchange` was using `_strong` and `memory_order_acquire`
by default. This is not aligned with general use, for example, in C++,
the default is `memory_order_seq_cst`. To reduce the ambiguity, make the
version and ordering explicitly.

Reviewed By: cferris

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




More information about the All-commits mailing list