tsan: flush metamap per-thread cache when thread finishes

llvm-svn: 210347
This commit is contained in:
Dmitry Vyukov 2014-06-06 15:52:10 +00:00
parent feb4ede8ac
commit ff194daead
1 changed files with 1 additions and 0 deletions

View File

@ -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