[PATCH] D14636: [tsan] Port test/tsan/bench.h to Darwin

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 13 01:19:49 PST 2015


kubabrecka created this revision.
kubabrecka added reviewers: dvyukov, samsonov, glider, kcc.
kubabrecka added subscribers: llvm-commits, zaks.anna, ismailp.

Several testcases use `test/tsan/bench.h`, which doesn't build on OS X currently, because it uses `clock_gettime(CLOCK_MONOTONIC)` and pthread barriers.  This patch provides alternative implementation for these on OS X.

http://reviews.llvm.org/D14636

Files:
  test/tsan/barrier.cc
  test/tsan/bench.h
  test/tsan/race_on_barrier2.c
  test/tsan/test.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14636.40112.patch
Type: text/x-patch
Size: 4382 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151113/2a38a67b/attachment.bin>


More information about the llvm-commits mailing list