[compiler-rt] r200838 - tsan: fix windows alignment check
Dmitry Vyukov
dvyukov at google.com
Wed Feb 5 05:41:10 PST 2014
Author: dvyukov
Date: Wed Feb 5 07:41:09 2014
New Revision: 200838
URL: http://llvm.org/viewvc/llvm-project?rev=200838&view=rev
Log:
tsan: fix windows alignment check
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc?rev=200838&r1=200837&r2=200838&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.cc Wed Feb 5 07:41:09 2014
@@ -198,7 +198,9 @@ void DontNeedShadowFor(uptr addr, uptr s
}
void MapShadow(uptr addr, uptr size) {
- CHECK_EQ(addr, addr & ~((64 << 10) - 1)); // windows wants 64K alignment
+ // Global data is not 64K aligned, but there are no adjacent mappings,
+ // so we can get away with unaligned mapping.
+ // CHECK_EQ(addr, addr & ~((64 << 10) - 1)); // windows wants 64K alignment
MmapFixedNoReserve(MemToShadow(addr), size * kShadowMultiplier);
}
More information about the llvm-commits
mailing list