Commit 85220919 by Graham Reed Committed by Jonathan Wakely

re PR libstdc++/47354 (bitmap_allocator free_list::_M_get never locks mutex)

2011-01-19  Graham Reed  <greed@pobox.com>

	PR libstdc++/47354
	* src/bitmap_allocator.cc (free_list::_M_get): Lock mutex.

From-SVN: r168980
parent 6f0a9757
2011-01-19 Graham Reed <greed@pobox.com>
PR libstdc++/47354
* src/bitmap_allocator.cc (free_list::_M_get): Lock mutex.
2011-01-18 Benjamin Kosnik <bkoz@redhat.com>
* doc/xml/images/confdeps.png: Regenerate.
......
......@@ -49,6 +49,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
{
#if defined __GTHREADS
__mutex_type& __bfl_mutex = _M_get_mutex();
__bfl_mutex.lock();
#endif
const vector_type& __free_list = _M_get_free_list();
using __gnu_cxx::__detail::__lower_bound;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment