[Bug libstdc++/46455] shared_ptr consuming too many semaphores on Windows

2010-11-15 Thread internet at 123gen dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46455 --- Comment #11 from Zouzou 2010-11-15 16:30:21 UTC --- (In reply to comment #10) > That's because my simpler test ignores the default_lock_policy, it always uses > a mutex, which is what shared_ptr does when __default_lock_policy=1 > I've just l

[Bug libstdc++/46455] shared_ptr consuming too many semaphores on Windows

2010-11-15 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46455 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libstdc++/46455] shared_ptr consuming too many semaphores on Windows

2010-11-15 Thread internet at 123gen dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46455 --- Comment #9 from Zouzou 2010-11-15 13:46:33 UTC --- (In reply to comment #7) > Could you try this, which is a simplified version of the shared_ptr > refcounting > code and should have the same behaviour: > #include > #include > #include >

[Bug libstdc++/46455] shared_ptr consuming too many semaphores on Windows

2010-11-15 Thread internet at 123gen dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46455 --- Comment #8 from Zouzou 2010-11-15 13:38:39 UTC --- (In reply to comment #5) > (In reply to comment #2) > > What's the value of __gnu_cxx::__default_lock_policy on Mingw? > > Is it the same for GCC 4.4 and 4.5? > > > > Between 4.4 and 4.5 the

[Bug libstdc++/46455] shared_ptr consuming too many semaphores on Windows

2010-11-15 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46455 --- Comment #7 from Jonathan Wakely 2010-11-15 12:26:24 UTC --- Could you try this, which is a simplified version of the shared_ptr refcounting code and should have the same behaviour: #include #include #include static int count0 = 0; struc

[Bug libstdc++/46455] shared_ptr consuming too many semaphores on Windows

2010-11-14 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46455 --- Comment #6 from Jonathan Wakely 2010-11-14 17:50:21 UTC --- if mingw.org modify GCC then this bug should be reported there, as I don't see anything wrong in the libstdc++ code

[Bug libstdc++/46455] shared_ptr consuming too many semaphores on Windows

2010-11-14 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46455 Kai Tietz changed: What|Removed |Added CC||ktietz at gcc dot gnu.org --- Comment #5 from

[Bug libstdc++/46455] shared_ptr consuming too many semaphores on Windows

2010-11-12 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46455 --- Comment #4 from Jonathan Wakely 2010-11-12 23:04:46 UTC --- yes, that's fine, thanks

[Bug libstdc++/46455] shared_ptr consuming too many semaphores on Windows

2010-11-12 Thread internet at 123gen dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46455 --- Comment #3 from Zouzou 2010-11-12 20:56:14 UTC --- (In reply to comment #2) > What's the value of __gnu_cxx::__default_lock_policy on Mingw? > Is it the same for GCC 4.4 and 4.5? it is 1 on both. (i got it using std::cout << __gnu_cxx::__def

[Bug libstdc++/46455] shared_ptr consuming too many semaphores on Windows

2010-11-12 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46455 --- Comment #2 from Jonathan Wakely 2010-11-12 20:25:19 UTC --- What's the value of __gnu_cxx::__default_lock_policy on Mingw? Is it the same for GCC 4.4 and 4.5? Between 4.4 and 4.5 there are some changes to the ghtr-win32.h file which provides

[Bug libstdc++/46455] shared_ptr consuming too many semaphores on Windows

2010-11-12 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46455 --- Comment #1 from Jonathan Wakely 2010-11-12 20:14:38 UTC --- I don't think anything in shared_ptr changed between 4.4 and 4.5, though I don't know what thread layer is used by MinGW. I'll look into it