diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2014-08-05 18:45:02 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2014-08-05 18:45:02 +0000 |
| commit | 70db9d4d725647d682bbd4fba7fd0caf4d29b715 (patch) | |
| tree | e1c84a68828791cc011c7d33eedc366d29be5546 /compiler-rt/lib/tsan/tests/unit/tsan_sync_test.cc | |
| parent | bcd82afad64a22b15000de350d075b10f2de273a (diff) | |
| download | bcm5719-llvm-70db9d4d725647d682bbd4fba7fd0caf4d29b715.tar.gz bcm5719-llvm-70db9d4d725647d682bbd4fba7fd0caf4d29b715.zip | |
tsan: allocate vector clocks using slab allocator
Vector clocks is the most actively allocated object in tsan runtime.
Current internal allocator is not scalable enough to handle allocation
of clocks in scalable way (too small caches). This changes transforms
clocks to 2-level array with 512-byte blocks. Since all blocks are of
the same size, it's possible to cache them more efficiently in per-thread caches.
llvm-svn: 214912
Diffstat (limited to 'compiler-rt/lib/tsan/tests/unit/tsan_sync_test.cc')
| -rw-r--r-- | compiler-rt/lib/tsan/tests/unit/tsan_sync_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/tests/unit/tsan_sync_test.cc b/compiler-rt/lib/tsan/tests/unit/tsan_sync_test.cc index 6f36c64a556..d3616a1a4b8 100644 --- a/compiler-rt/lib/tsan/tests/unit/tsan_sync_test.cc +++ b/compiler-rt/lib/tsan/tests/unit/tsan_sync_test.cc @@ -114,7 +114,7 @@ TEST(MetaMap, ResetSync) { u64 block[1] = {}; // fake malloc block m->AllocBlock(thr, 0, (uptr)&block[0], 1 * sizeof(u64)); SyncVar *s = m->GetOrCreateAndLock(thr, 0, (uptr)&block[0], true); - s->Reset(); + s->Reset(thr); s->mtx.Unlock(); uptr sz = m->FreeBlock(thr, 0, (uptr)&block[0]); EXPECT_EQ(sz, 1 * sizeof(u64)); |

