mt_allocator.h (struct __per_type_pool_policy<,, [...]): Scale _M_chunk_size too with sizeof(_Tp)... 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. From-SVN: r94268
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
check_allocate_big_per_type.cc | Loading commit data... | |
check_allocate_max_size.cc | Loading commit data... | |
check_deallocate_null.cc | Loading commit data... | |
check_deallocate_null_thread.cc | Loading commit data... | |
check_delete.cc | Loading commit data... | |
check_new.cc | Loading commit data... | |
deallocate_global-2.cc | Loading commit data... | |
deallocate_global-4.cc | Loading commit data... | |
deallocate_global_thread-1.cc | Loading commit data... | |
deallocate_global_thread-3.cc | Loading commit data... | |
deallocate_local-2.cc | Loading commit data... | |
deallocate_local-4.cc | Loading commit data... | |
deallocate_local_thread-1.cc | Loading commit data... | |
deallocate_local_thread-3.cc | Loading commit data... | |
instantiate.cc | Loading commit data... | |
tune-1.cc | Loading commit data... | |
tune-2.cc | Loading commit data... | |
tune-3.cc | Loading commit data... | |
tune-4.cc | Loading commit data... |