diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2012-11-28 10:35:31 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2012-11-28 10:35:31 +0000 |
commit | 385542a2e83a4f37de4232d6c72097c1b7d6d44b (patch) | |
tree | 177e2b88084f05af79b61dfc07cd93d6153f5c8c /lib/tsan/go/test.c | |
parent | 45bdb2ffb2878a6c22493af76256d5950dc0a6a2 (diff) |
tsan: move traces from tls into dedicated storage at fixed address
helps to reduce tls size (it's weird to have multi-MB tls)
will help with dynamically adjustable trace size
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168783 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/go/test.c')
-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 ae63d66b6..2414a1e99 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(buf, sizeof(buf)); + __tsan_map_shadow(buf, sizeof(buf) + 4096); __tsan_func_enter(0, &main); __tsan_malloc(0, buf, 10, 0); __tsan_release(0, buf); |