diff options
Diffstat (limited to 'libsanitizer/tsan/tsan_trace.h')
-rw-r--r-- | libsanitizer/tsan/tsan_trace.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libsanitizer/tsan/tsan_trace.h b/libsanitizer/tsan/tsan_trace.h index 69233a61bab..154cc15c083 100644 --- a/libsanitizer/tsan/tsan_trace.h +++ b/libsanitizer/tsan/tsan_trace.h @@ -17,12 +17,9 @@ namespace __tsan { -#ifndef TSAN_HISTORY_SIZE // in kibitraces -#define TSAN_HISTORY_SIZE 128 -#endif - -const int kTracePartSize = 16 * 1024; -const int kTraceParts = TSAN_HISTORY_SIZE * 1024 / kTracePartSize; +const int kTracePartSizeBits = 14; +const int kTracePartSize = 1 << kTracePartSizeBits; +const int kTraceParts = 4 * 1024 * 1024 / kTracePartSize; const int kTraceSize = kTracePartSize * kTraceParts; // Must fit into 3 bits. @@ -59,7 +56,6 @@ struct TraceHeader { }; struct Trace { - Event events[kTraceSize]; TraceHeader headers[kTraceParts]; Mutex mtx; |