aboutsummaryrefslogtreecommitdiff
path: root/libsanitizer/tsan/tsan_trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsanitizer/tsan/tsan_trace.h')
-rw-r--r--libsanitizer/tsan/tsan_trace.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libsanitizer/tsan/tsan_trace.h b/libsanitizer/tsan/tsan_trace.h
index 6986483..93ed8d9 100644
--- a/libsanitizer/tsan/tsan_trace.h
+++ b/libsanitizer/tsan/tsan_trace.h
@@ -60,6 +60,11 @@ struct TraceHeader {
struct Trace {
TraceHeader headers[kTraceParts];
Mutex mtx;
+#ifndef TSAN_GO
+ // Must be last to catch overflow as paging fault.
+ // Go shadow stack is dynamically allocated.
+ uptr shadow_stack[kShadowStackSize];
+#endif
Trace()
: mtx(MutexTypeTrace, StatMtxTrace) {