[compiler-rt] r210347 - tsan: flush metamap per-thread cache when thread finishes
Dmitry Vyukov
dvyukov at google.com
Fri Jun 6 08:52:10 PDT 2014
Author: dvyukov
Date: Fri Jun 6 10:52:10 2014
New Revision: 210347
URL: http://llvm.org/viewvc/llvm-project?rev=210347&view=rev
Log:
tsan: flush metamap per-thread cache when thread finishes
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_thread.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_thread.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_thread.cc?rev=210347&r1=210346&r2=210347&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_thread.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_thread.cc Fri Jun 6 10:52:10 2014
@@ -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
More information about the llvm-commits
mailing list