[llvm-commits] [compiler-rt] r162905 - /compiler-rt/trunk/lib/tsan/rtl/tsan_trace.h
Dmitry Vyukov
dvyukov at google.com
Thu Aug 30 06:29:11 PDT 2012
Author: dvyukov
Date: Thu Aug 30 08:29:11 2012
New Revision: 162905
URL: http://llvm.org/viewvc/llvm-project?rev=162905&view=rev
Log:
tsan: simplify TSAN_HISTORY_SIZE code
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_trace.h
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_trace.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_trace.h?rev=162905&r1=162904&r2=162905&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_trace.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_trace.h Thu Aug 30 08:29:11 2012
@@ -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.
More information about the llvm-commits
mailing list