This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCHES][RFC] Fix a deadlock bug in static variable initialization


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]