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 |
|---|---|---|
| .. | ||
| array_allocator | Loading commit data... | |
| bitmap_allocator | Loading commit data... | |
| debug_allocator | Loading commit data... | |
| enc_filebuf | Loading commit data... | |
| hash_map | Loading commit data... | |
| hash_set | Loading commit data... | |
| malloc_allocator | Loading commit data... | |
| mt_allocator | Loading commit data... | |
| new_allocator | Loading commit data... | |
| pool_allocator | Loading commit data... | |
| rope | Loading commit data... | |
| slist | Loading commit data... | |
| stdio_filebuf/char | Loading commit data... | |
| stdio_sync_filebuf | Loading commit data... | |
| concept_checks.cc | Loading commit data... | |
| headers.cc | Loading commit data... | |
| pod_char_traits.cc | Loading commit data... |