[PATCH] D14434: tsan: make invisible test barrier portable

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 6 03:47:25 PST 2015


dvyukov added a comment.

The problem was that tsan shadow has 8-byte granularity. When I changed pthread_barrier_t (which is at least 8 bytes) to unsigned, it started being collocated with the Global variable in the same 8-bytes, and that caused shadow slot evictions for Global.


http://reviews.llvm.org/D14434





More information about the llvm-commits mailing list