diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2014-06-06 15:52:10 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2014-06-06 15:52:10 +0000 |
commit | ff194daead0fea25920c5c712f907558cbd3be8c (patch) | |
tree | c49cfa92def978917534269ab9f9c0438a8de021 /compiler-rt/lib | |
parent | feb4ede8ac8f9a48639ffb60c11531c1456f7c3c (diff) | |
download | bcm5719-llvm-ff194daead0fea25920c5c712f907558cbd3be8c.tar.gz bcm5719-llvm-ff194daead0fea25920c5c712f907558cbd3be8c.zip |
tsan: flush metamap per-thread cache when thread finishes
llvm-svn: 210347
Diffstat (limited to 'compiler-rt/lib')
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc index 6f7e0a913cb..94bf7548a9c 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc @@ -134,6 +134,7 @@ void ThreadContext::OnFinished() { ctx->dd->DestroyPhysicalThread(thr->dd_pt); ctx->dd->DestroyLogicalThread(thr->dd_lt); } + ctx->metamap.OnThreadIdle(thr); #ifndef TSAN_GO AllocatorThreadFinish(thr); #endif |