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 | 2429b027703b96e99a275d71ed75fde6492bb779 (patch) | |
tree | 28425449c58d64164bac64cf3359a8b9ae2d48ed /compiler-rt/lib/tsan/go/test.c | |
parent | a873623e54b4d32ff7b1aada54eaf2476135d3a7 (diff) | |
download | bcm5719-llvm-2429b027703b96e99a275d71ed75fde6492bb779.tar.gz bcm5719-llvm-2429b027703b96e99a275d71ed75fde6492bb779.zip |
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
llvm-svn: 168783
Diffstat (limited to 'compiler-rt/lib/tsan/go/test.c')
-rw-r--r-- | compiler-rt/lib/tsan/go/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/go/test.c b/compiler-rt/lib/tsan/go/test.c index ae63d66b615..2414a1e9925 100644 --- a/compiler-rt/lib/tsan/go/test.c +++ b/compiler-rt/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); |