diff options
author | Paolo Carlini <pcarlini@suse.de> | 2004-10-21 00:06:02 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2004-10-21 00:06:02 +0000 |
commit | a063e891bd88967d9dcea0f8c163f8372116265f (patch) | |
tree | 86541239e0f24c6b8ccdb784b4212770c4b0f617 /libjava/java | |
parent | f644cebf003c3dade9b0b583facc5c8d50a025f3 (diff) | |
download | gcc-a063e891bd88967d9dcea0f8c163f8372116265f.zip gcc-a063e891bd88967d9dcea0f8c163f8372116265f.tar.gz gcc-a063e891bd88967d9dcea0f8c163f8372116265f.tar.bz2 |
bitmap_allocator.h (allocate): Throw std::bad_alloc when n > max_size().
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
Diffstat (limited to 'libjava/java')
0 files changed, 0 insertions, 0 deletions