projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
595683d
)
tsan: add a useful debug check
author
Dmitry Vyukov
<dvyukov@google.com>
Mon, 28 Jul 2014 13:54:18 +0000
(13:54 +0000)
committer
Dmitry Vyukov
<dvyukov@google.com>
Mon, 28 Jul 2014 13:54:18 +0000
(13:54 +0000)
llvm-svn: 214082
compiler-rt/lib/tsan/rtl/tsan_dense_alloc.h
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/tsan/rtl/tsan_dense_alloc.h
b/compiler-rt/lib/tsan/rtl/tsan_dense_alloc.h
index
2c2e75e
..
a1cf84b
100644
(file)
--- a/
compiler-rt/lib/tsan/rtl/tsan_dense_alloc.h
+++ b/
compiler-rt/lib/tsan/rtl/tsan_dense_alloc.h
@@
-65,6
+65,7
@@
class DenseSlabAlloc {
}
void Free(Cache *c, IndexT idx) {
+ DCHECK_NE(idx, 0);
if (c->pos == Cache::kSize)
Drain(c);
c->cache[c->pos++] = idx;