[all-commits] [llvm/llvm-project] e6c295: [scudo] Condition variable can be disabled by sett...

ChiaHungDuan via All-commits all-commits at lists.llvm.org
Wed Jan 10 11:03:41 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e6c2952eb51a422e17f002d97b0ea467be4d325b
      https://github.com/llvm/llvm-project/commit/e6c2952eb51a422e17f002d97b0ea467be4d325b
  Author: ChiaHungDuan <chiahungduan at google.com>
  Date:   2024-01-10 (Wed, 10 Jan 2024)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/condition_variable.h

  Log Message:
  -----------
  [scudo] Condition variable can be disabled by setting the flag to off (#77532)

To enable the condition variable, you have to define both
UseConditionVariable and the ConditionVariableT. Otherwise, it'll be
disabled. However, you may want to disable the condition variable by
setting UseConditionVariable=false, for example, while measuring the
performance and you want to turn it off temporarily. Instead of
requiring the removal of the variable, examining its value makes more
sense.




More information about the All-commits mailing list