diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2012-08-30 13:29:11 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2012-08-30 13:29:11 +0000 |
commit | 9d6f5a88618689a145eb30674db22dbfa894c8ad (patch) | |
tree | e12d02859d256d8fd484c79eafa0b32d831ab52c /lib/tsan/rtl/tsan_trace.h | |
parent | ff35f1d82b4f145b3477ef27a7a2e7b63c486988 (diff) |
tsan: simplify TSAN_HISTORY_SIZE code
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_trace.h')
-rw-r--r-- | lib/tsan/rtl/tsan_trace.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/tsan/rtl/tsan_trace.h b/lib/tsan/rtl/tsan_trace.h index 5e46bfb7a..97ec96975 100644 --- a/lib/tsan/rtl/tsan_trace.h +++ b/lib/tsan/rtl/tsan_trace.h @@ -19,12 +19,12 @@ namespace __tsan { -const int kTracePartSize = 16 * 1024; #ifndef TSAN_HISTORY_SIZE // in kibitraces -const int kTraceParts = 8; -#else -const int kTraceParts = TSAN_HISTORY_SIZE * 1024 / kTracePartSize; +#define TSAN_HISTORY_SIZE 128 #endif + +const int kTracePartSize = 16 * 1024; +const int kTraceParts = TSAN_HISTORY_SIZE * 1024 / kTracePartSize; const int kTraceSize = kTracePartSize * kTraceParts; // Must fit into 3 bits. |