OSDN Git Service

2011-01-19 Graham Reed <greed@pobox.com>
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Jan 2011 02:27:45 +0000 (02:27 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Jan 2011 02:27:45 +0000 (02:27 +0000)
PR libstdc++/47354
* src/bitmap_allocator.cc (free_list::_M_get): Lock mutex.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168980 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/src/bitmap_allocator.cc

index 7380741..1089691 100644 (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.
+
 2011-01-18  Benjamin Kosnik  <bkoz@redhat.com>
 
        * doc/xml/images/confdeps.png: Regenerate.
index 55b308d..8394ef6 100644 (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;