tsan: simplify TSAN_HISTORY_SIZE code

llvm-svn: 162905
This commit is contained in:
Dmitry Vyukov 2012-08-30 13:29:11 +00:00
parent b3afa6c483
commit 7af8a3a83d
1 changed files with 4 additions and 4 deletions

View File

@ -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.