]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR libstdc++/24469 (Possible race condition in mt_allocator causing SIGSEGV)
authorPaolo Carlini <pcarlini@suse.de>
Sat, 2 Sep 2006 08:31:45 +0000 (08:31 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 2 Sep 2006 08:31:45 +0000 (08:31 +0000)
commit1d3e6248e59e6f7bca2c49ba367de9cc296837de
treefccd6471b2b07451f58ce618be89804c2617a96b
parentb73aec4fa5506d3f657aede2e44f989a894cf7aa
re PR libstdc++/24469 (Possible race condition in mt_allocator causing SIGSEGV)

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.

Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r116660
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/mt_allocator.h
libstdc++-v3/src/mt_allocator.cc