[all-commits] [llvm/llvm-project] 7de546: tsan: deflake flush_memory.cpp

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Mon Dec 13 03:01:42 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7de546e9e8b6c07ef1247f518b2995ec4efbb7d2
      https://github.com/llvm/llvm-project/commit/7de546e9e8b6c07ef1247f518b2995ec4efbb7d2
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-12-13 (Mon, 13 Dec 2021)

  Changed paths:
    M compiler-rt/test/tsan/flush_memory.cpp

  Log Message:
  -----------
  tsan: deflake flush_memory.cpp

The test contains a race and checks that it's detected.
But the race may not be detected since we are doing aggressive flushes
and if the state flush happens between racing accesses, tsan won't
detect the race). So return 1 to make the test deterministic
regardless of the race.

Reviewed By: melver

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




More information about the All-commits mailing list