tsan: fix windows alignment check

llvm-svn: 200838
This commit is contained in:
Dmitry Vyukov 2014-02-05 13:41:09 +00:00
parent a38114c45e
commit 93474a9acd
1 changed files with 3 additions and 1 deletions

View File

@ -198,7 +198,9 @@ void DontNeedShadowFor(uptr addr, uptr size) {
} }
void MapShadow(uptr addr, uptr size) { 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); MmapFixedNoReserve(MemToShadow(addr), size * kShadowMultiplier);
} }