projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27d5b37
)
tsan: wait for pending reports before exit
author
Dmitry Vyukov
<dvyukov@google.com>
Tue, 2 Oct 2012 12:07:16 +0000
(12:07 +0000)
committer
Dmitry Vyukov
<dvyukov@google.com>
Tue, 2 Oct 2012 12:07:16 +0000
(12:07 +0000)
llvm-svn: 164999
compiler-rt/lib/tsan/rtl/tsan_rtl.cc
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc
b/compiler-rt/lib/tsan/rtl/tsan_rtl.cc
index
90e2584
..
1bbb367
100644
(file)
--- a/
compiler-rt/lib/tsan/rtl/tsan_rtl.cc
+++ b/
compiler-rt/lib/tsan/rtl/tsan_rtl.cc
@@
-219,6
+219,10
@@
int Finalize(ThreadState *thr) {
Context *ctx = __tsan::ctx;
bool failed = false;
+ // Wait for pending reports.
+ ctx->report_mtx.Lock();
+ ctx->report_mtx.Unlock();
+
ThreadFinalize(thr);
if (ctx->nreported) {