OSDN Git Service

2006-09-02 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 Sep 2006 08:31:45 +0000 (08:31 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 Sep 2006 08:31:45 +0000 (08:31 +0000)
commit395e868d68de177b7b2216169cb0f86db1393bc0
treefccd6471b2b07451f58ce618be89804c2617a96b
parent46b2b3c86c56ed246be57091b36697d1d5c8bae0
2006-09-02  Paolo Carlini  <pcarlini@suse.de>
    Richard Guenther  <rguenther@suse.de>

PR libstdc++/24469
* src/mt_allocator.cc (__pool<true>::_M_reserve_block,
__pool<true>::_M_reclaim_block): Fix the logic to avoid
races, exploit atomic counters stored in second part of
the memory pointed by _M_used.
(__pool<true>::_M_initialize): Adjust _M_used allocation.
* include/ext/mt_allocator.h (__pool<true>::_Bin_record):
Update comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116660 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/mt_allocator.h
libstdc++-v3/src/mt_allocator.cc