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: r168985
This commit is contained in:
Graham Reed 2011-01-19 08:49:58 +00:00 committed by Jonathan Wakely
parent 80648cf4ea
commit fcd6e0aa64
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-01-19 Graham Reed <greed@pobox.com>
PR libstdc++/47354
* src/bitmap_allocator.cc (free_list::_M_get): Lock mutex.
2010-12-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Backport from mainline:

View File

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