This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/29118] [4.2 Regression] Timeouts in libstdc++, libjava and libgomp testsuites
- From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2006 17:09:28 -0000
- Subject: [Bug libstdc++/29118] [4.2 Regression] Timeouts in libstdc++, libjava and libgomp testsuites
- References: <bug-29118-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #22 from dave at hiauly1 dot hia dot nrc dot ca 2006-10-08 17:09 -------
Subject: Re: [4.2 Regression] Timeouts in libstdc++, libjava and libgomp
testsuites
> Couldn't the constructor for locale possibly run before the one
> for the locale_mutex?
The ordering issue is confirmed. The following change allows the
test program to run successfully and gets us back to where we were
previously with respect to libstdc++ testsuite results.
At "break here", both test_mutex and locale_mutex are properly
initialized.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
Index: src/locale_init.cc
===================================================================
--- src/locale_init.cc (revision 117447)
+++ src/locale_init.cc (working copy)
@@ -207,7 +207,6 @@
locale::locale() throw() : _M_impl(0)
{
_S_initialize();
- __gnu_cxx::__scoped_lock sentry(locale_mutex);
_S_global->_M_add_reference();
_M_impl = _S_global;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29118