Counter-PATCH (libstdc++-v3, mainline) for: std::_Atomic_swap for i386

Loren James Rittle rittle@latour.rsch.comm.mot.com
Mon May 5 22:31:00 GMT 2003


Danny, Thank you for testing in your environment and agreeing to a
replacement patch (I've been looking to kill the special lone use of
_Atomic_swap).  Tested in multiple environment as mentioned in the
thread.  I added this text and committed to the mainline:

2003-05-05  Loren J. Rittle  <ljrittle@acm.org>
            (Inspired by an alternate patch from Danny Smith.)

> 	* include/bits/stl_threads.h (_Atomic_swap): Kill it...
> 	(_Swap_lock_struct<>): ...and the horse it rode in on.
> 	* src/globals.cc (_Swap_lock_struct<>): Likewise.
> 	* include/ext/stl_rope.h (_Rope_RopeRep<>::_M_c_string_lock): New
> 	member to support...
> 	* include/ext/ropeimpl.h (rope<>::c_str): Follow *all* memory
> 	visibility rules related to POSIX threads.
> 	* testsuite/thread/pthread7-rope.cc: New test.

(Please note that the removed object was not mentioned in the
 config/linker-map.gnu, but I'd consider this one of those pesky
 effective ABI changes.)



More information about the Libstdc++ mailing list