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

Dmitry Vyukov dvyukov at google.com
Thu Apr 4 08:48:44 PDT 2013


On Wed, Apr 3, 2013 at 10:05 PM, Alexey Samsonov <samsonov at google.com>wrote:

>
> 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?
>
> Must be.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130404/b257b430/attachment.html>


More information about the llvm-commits mailing list