[PATCH] D14925: [tsan] Fix stack_sync_reuse.cc test on OS X
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 24 05:32:09 PST 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL253981: [tsan] Fix stack_sync_reuse.cc test on OS X (authored by kuba.brecka).
Changed prior to commit:
http://reviews.llvm.org/D14925?vs=40923&id=41031#toc
Repository:
rL LLVM
http://reviews.llvm.org/D14925
Files:
compiler-rt/trunk/test/tsan/stack_sync_reuse.cc
Index: compiler-rt/trunk/test/tsan/stack_sync_reuse.cc
===================================================================
--- compiler-rt/trunk/test/tsan/stack_sync_reuse.cc
+++ compiler-rt/trunk/test/tsan/stack_sync_reuse.cc
@@ -31,16 +31,18 @@
}
void __attribute__((noinline)) foobar() {
- long s;
+ __attribute__((aligned(64))) long s;
+
addr = &s;
__atomic_store_n(&s, 0, __ATOMIC_RELAXED);
__atomic_store_n(&syncp, &s, __ATOMIC_RELEASE);
while (__atomic_load_n(&syncp, __ATOMIC_RELAXED) != 0)
usleep(1000); // spin wait
}
void __attribute__((noinline)) barfoo() {
- long s;
+ __attribute__((aligned(64))) long s;
+
if (addr != &s) {
printf("address mismatch addr=%p &s=%p\n", addr, &s);
exit(1);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14925.41031.patch
Type: text/x-patch
Size: 745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151124/f678e9c0/attachment.bin>
More information about the llvm-commits
mailing list