summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/rtl/tsan_defs.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2012-06-22 11:08:55 +0000
committerDmitry Vyukov <dvyukov@google.com>2012-06-22 11:08:55 +0000
commitde1fd1c83b252eda7789c72c6a8a55f5dfa6bbe0 (patch)
tree0d3ab45f7c58d33b132fee2aa8608b9fb033b139 /compiler-rt/lib/tsan/rtl/tsan_defs.h
parentb5f971f744c7ac08d194d7ba689b598d15c3c119 (diff)
downloadbcm5719-llvm-de1fd1c83b252eda7789c72c6a8a55f5dfa6bbe0.tar.gz
bcm5719-llvm-de1fd1c83b252eda7789c72c6a8a55f5dfa6bbe0.zip
tsan: do not call malloc/free in memory access handling routine.
This improves signal-/fork-safety of instrumented programs. llvm-svn: 158988
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_defs.h')
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_defs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_defs.h b/compiler-rt/lib/tsan/rtl/tsan_defs.h
index 5127d5dc46f..ae99ecc4835 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_defs.h
+++ b/compiler-rt/lib/tsan/rtl/tsan_defs.h
@@ -29,6 +29,7 @@ const int kTidBits = 13;
const unsigned kMaxTid = 1 << kTidBits;
const unsigned kMaxTidInClock = kMaxTid * 2; // This includes msb 'freed' bit.
const int kClkBits = 43;
+const int kShadowStackSize = 1024;
#ifdef TSAN_SHADOW_COUNT
# if TSAN_SHADOW_COUNT == 2 \
OpenPOWER on IntegriCloud