mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-22 11:31:05 +08:00
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:
parent
80648cf4ea
commit
fcd6e0aa64
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user