From ff194daead0fea25920c5c712f907558cbd3be8c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 6 Jun 2014 15:52:10 +0000 Subject: tsan: flush metamap per-thread cache when thread finishes llvm-svn: 210347 --- compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc') 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 -- cgit v1.2.3