diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2012-11-06 16:48:46 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2012-11-06 16:48:46 +0000 |
commit | 6b641c5e63be45a03f96346886d27c4b4135ddaf (patch) | |
tree | a1198054a6b8b2ca6f5d7abc6d742e2b32281b46 /lib/tsan/go | |
parent | a05fcc1e3e045097f2f1a20798cbe038bbb1d6a9 (diff) | |
download | compiler-rt-6b641c5e63be45a03f96346886d27c4b4135ddaf.tar.gz |
tsan: slightly relax requirements for lazy shadow memory (can overlap and may not be properly aligned)
it's problematic on windows where allocation granularity is much larger than page size
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167466 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/go')
-rw-r--r-- | lib/tsan/go/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tsan/go/test.c b/lib/tsan/go/test.c index 865da4ef0..ae63d66b6 100644 --- a/lib/tsan/go/test.c +++ b/lib/tsan/go/test.c @@ -36,7 +36,7 @@ char buf[10]; int main(void) { __tsan_init(); - __tsan_map_shadow((unsigned long)buf & ~(4096-1), 4096); + __tsan_map_shadow(buf, sizeof(buf)); __tsan_func_enter(0, &main); __tsan_malloc(0, buf, 10, 0); __tsan_release(0, buf); |