From 03ac15fffb4b1570462e096382944ce7daf95d27 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 22 Sep 2017 18:31:51 +0000 Subject: [PATCH] [asan] Fix unlocking order for CommonSanitizerReportMutex and reporting_thread_tid_ llvm-svn: 314007 --- compiler-rt/lib/asan/asan_report.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/asan/asan_report.cc b/compiler-rt/lib/asan/asan_report.cc index 8523a74..d832633 100644 --- a/compiler-rt/lib/asan/asan_report.cc +++ b/compiler-rt/lib/asan/asan_report.cc @@ -205,8 +205,8 @@ class ScopedInErrorReport { Die(); } - atomic_store_relaxed(&reporting_thread_tid_, kUnclaimedTid); CommonSanitizerReportMutex.Unlock(); + atomic_store_relaxed(&reporting_thread_tid_, kUnclaimedTid); } void ReportError(const ErrorDescription &description) { -- 2.7.4