This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/29118] [4.2 Regression] Timeouts in libstdc++, libjava and libgomp testsuites



------- 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


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