a063e891bd
2004-10-20 Paolo Carlini <pcarlini@suse.de> * include/ext/bitmap_allocator.h (allocate): Throw std::bad_alloc when n > max_size(). * include/ext/malloc_allocator.h (allocate): Likewise. * include/ext/mt_allocator.h (allocate): Likewise. * include/ext/new_allocator.h (allocate): Likewise. * include/ext/array_allocator.h: Use __throw_bad_alloc(). * include/ext/pool_allocator.h: Use __builtin_expect. * testsuite/ext/array_allocator/check_allocate_max_size.cc: New. * testsuite/ext/bitmap_allocator/check_allocate_max_size.cc: Likewise. * testsuite/ext/malloc_allocator/check_allocate_max_size.cc: Likewise. * testsuite/ext/mt_allocator/check_allocate_max_size.cc: Likewise. * testsuite/ext/new_allocator/check_allocate_max_size.cc: Likewise. * testsuite/ext/pool_allocator/check_allocate_max_size.cc: Likewise. * testsuite/testsuite_allocator.h (check_allocate_max_size): New test. From-SVN: r89351 |
||
---|---|---|
.. | ||
array_allocator | ||
bitmap_allocator | ||
debug_allocator | ||
enc_filebuf | ||
hash_map | ||
hash_set | ||
malloc_allocator | ||
mt_allocator | ||
new_allocator | ||
pool_allocator | ||
rope | ||
slist | ||
stdio_filebuf/char | ||
stdio_sync_filebuf | ||
concept_checks.cc | ||
headers.cc | ||
pod_char_traits.cc |