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/rtl/tsan_flags.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/rtl/tsan_flags.cc')
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_flags.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_flags.cc b/compiler-rt/lib/tsan/rtl/tsan_flags.cc index 466861fa7bc..39b607ff621 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_flags.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_flags.cc @@ -107,7 +107,7 @@ void InitializeFlags(Flags *f, const char *env) { ParseCommonFlagsFromString(f, env); // Copy back to common flags. - *common_flags() = *f; + internal_memcpy(common_flags(), f, sizeof(*common_flags())); // Sanity check. if (!f->report_bugs) { |

