Re: [PATCH] PR libstdc++/91910 fix data race in Debug Mode destructors

2019-09-27 Thread Jonathan Wakely
On 27/09/19 18:07 +0200, François Dumont wrote: On 9/26/19 3:20 PM, Jonathan Wakely wrote: Fix data race when _Safe_iterator_base::_M_detach() runs concurrently with the _Safe_container_base destructor. PR libstdc++/91910 * src/c++11/debug.cc (_Safe_iterator_base::_M_detach()): Load

Re: [PATCH] PR libstdc++/91910 fix data race in Debug Mode destructors

2019-09-27 Thread François Dumont
On 9/26/19 3:20 PM, Jonathan Wakely wrote: Fix data race when _Safe_iterator_base::_M_detach() runs concurrently with the _Safe_container_base destructor. PR libstdc++/91910 * src/c++11/debug.cc (_Safe_iterator_base::_M_detach()): Load pointer atomically and lock the mutex before

Re: [PATCH] PR libstdc++/91910 fix data race in Debug Mode destructors

2019-09-26 Thread Jonathan Wakely
On 26/09/19 14:20 +0100, Jonathan Wakely wrote: Fix data race when _Safe_iterator_base::_M_detach() runs concurrently with the _Safe_container_base destructor. PR libstdc++/91910 * src/c++11/debug.cc (_Safe_iterator_base::_M_detach()): Load pointer atomically and lock

[PATCH] PR libstdc++/91910 fix data race in Debug Mode destructors

2019-09-26 Thread Jonathan Wakely
Fix data race when _Safe_iterator_base::_M_detach() runs concurrently with the _Safe_container_base destructor. PR libstdc++/91910 * src/c++11/debug.cc (_Safe_iterator_base::_M_detach()): Load pointer atomically and lock the mutex before accessing the sequence.