r259931 - [SystemZ] Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP macros

Hal Finkel via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 9 09:16:21 PST 2016


----- Original Message -----
> From: "Ulrich Weigand" <Ulrich.Weigand at de.ibm.com>
> To: "Hal Finkel" <hfinkel at anl.gov>
> Cc: cfe-commits at lists.llvm.org
> Sent: Tuesday, February 9, 2016 6:36:34 AM
> Subject: Re: r259931 - [SystemZ] Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP macros
> 
> 
> 
> Hal Finkel <hfinkel at anl.gov> wrote on 09.02.2016 04:59:21:
> 
> > We generally notice this when we try to use some part of the C++
> > standard library (std::atomic or std::thread as I recall). Could we
> > have something in the test-suite that uses that functionality in a
> > way likely to expose this bug?
> 
> Well, when I looked into it, the problem was already in the
> std::thread constructor, which sets up a data structure incorrectly
> so that the new thread immediately crashes on startup.
> 
> I guess any application that uses C++11 threads should show this
> problem immediately.

I'm not sure we have anything like that in our test suite. Could you add a simple test?

 -Hal

> 
> Bye,
> Ulrich
> 
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory


More information about the cfe-commits mailing list