[PATCHES][RFC] Fix a deadlock bug in static variable initialization
Andrew Pinski
pinskia@gmail.com
Fri Jun 8 22:01:00 GMT 2007
On 6/8/07, Andrew Pinski <pinskia@gmail.com> wrote:
> On 6/8/07, Doug Kwan (關振德) <dougkwan@google.com> wrote:
> > Hi,
> >
> > Attached here is patches to both gcc and libstdc++-v3 to fix a
> > deadlock problem in function static variables. The patches have been
> > applied to gcc-4.1.0 and tested on i486 with a full bootstrap. I've
> > also test the trunk it is not stable enough to do a full bootstrap.
> A couple comments about the patch:
A couple more, you only updated gthr-posix.h and gthr-single.h even
though gthr-posix95.h exists and is used for some solaris based
targets (older ones) and guard.cc is used there also and
pthread_cond_wait exists for POSIX 95 :). So the tests will fail on
older solaris machines and maybe even on alpha OSF as that uses
gthr-dce.h. And also gthr-tpf.h.
Thanks,
Andrew Pinski
More information about the Libstdc++
mailing list