[PATCH] Introduce a common mutex to prevent mixing reports from different sanitizers.

Alexey Samsonov samsonov at google.com
Wed Apr 3 22:05:16 PDT 2013


On Apr 4, 2013 4:52 AM, "Dmitry Vyukov" <dvyukov at google.com> wrote:
>
>
>
> ================
> Comment at: lib/sanitizer_common/sanitizer_common.h:114
> @@ -112,1 +113,3 @@
> +// Can be used to prevent mixing error reports from different sanitizers.
> +extern StaticSpinMutex CommonSanitizerReportMutex;
>
> ----------------
> We usually don't name variables LikeThis, we usually name them like_this.
> And quite verbose on my taste. But feel free to ignore.
>
> ================
> Comment at: lib/tsan/rtl/tsan_rtl.h:525
> @@ -524,3 +524,2 @@
>
> -  Mutex report_mtx;
>    int nreported;
> ----------------
> Leave this one as well. It detects deadlocks.
> And it must the outer mutex, because it measures contention as well.

Must what?

>
>
>
> http://llvm-reviews.chandlerc.com/D618
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130404/fdb2bc8f/attachment.html>


More information about the llvm-commits mailing list