2005-01-26 Paolo Carlini <pcarlini@suse.de>
* include/ext/mt_allocator.h (struct __per_type_pool_policy<,, false>::_S_get_pool, struct __per_type_pool_policy<,, true>::_S_get_pool): Scale _M_chunk_size too with sizeof(_Tp), otherwise the allocator breaks down as soon as sizeof(_Tp) >~ _S_chunk_size / 128; reduce to 64 the multiplier for _M_max_bytes (safer wrt _Binmap_type being a short); trivial reformattings. * testsuite/ext/mt_allocator/check_allocate_big_per_type.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94268 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- libstdc++-v3/ChangeLog 11 additions, 0 deletionslibstdc++-v3/ChangeLog
- libstdc++-v3/include/ext/mt_allocator.h 29 additions, 7 deletionslibstdc++-v3/include/ext/mt_allocator.h
- libstdc++-v3/testsuite/ext/mt_allocator/check_allocate_big_per_type.cc 55 additions, 0 deletions...testsuite/ext/mt_allocator/check_allocate_big_per_type.cc
Loading
Please register or sign in to comment