]> gcc.gnu.org Git - gcc.git/commit
mt_allocator.h (__mt_alloc::deallocate): Check for null pointer.
authorBenjamin Kosnik <bkoz@redhat.com>
Thu, 14 Oct 2004 23:03:26 +0000 (23:03 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 14 Oct 2004 23:03:26 +0000 (23:03 +0000)
commit5d1b2a1e421e770aba056e6b1405ed0eb29d29eb
tree76f340573e6c3e486eb792b698ac5d5058a12c6e
parentc4e18b1c3e26a9afeb3438f6173742ac5cb1fece
mt_allocator.h (__mt_alloc::deallocate): Check for null pointer.

2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>

* include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
null pointer.
* include/ext/pool_allocator.h (debug_allocator::deallocate):
Check pointer value.
* include/ext/debug_allocator.h (debug_allocator::deallocate):
Throw exceptions, don't abort.
* include/ext/array_allocator.h
(array_allocator_base::deallocate): Remove unused parameters.
* testsuite/testsuite_allocator.h (check_deallocate_null): New.
* testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
* testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
* testsuite/ext/array_allocator/check_deallocate_null.cc: New.
* testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
* testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
* testsuite/ext/new_allocator/check_deallocate_null.cc: New.
* testsuite/ext/pool_allocator/check_deallocate_null.cc: New.

* testsuite/testsuite_allocator.h (check_new): Add instance argument.
* testsuite/ext/array_allocator/check_new.cc: New.

From-SVN: r89060
14 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/array_allocator.h
libstdc++-v3/include/ext/debug_allocator.h
libstdc++-v3/include/ext/mt_allocator.h
libstdc++-v3/include/ext/pool_allocator.h
libstdc++-v3/testsuite/ext/array_allocator/check_deallocate_null.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/array_allocator/check_new.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/debug_allocator/check_deallocate_null.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/malloc_allocator/check_deallocate_null.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/mt_allocator/check_deallocate_null.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/mt_allocator/check_deallocate_null_thread.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/new_allocator/check_deallocate_null.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/pool_allocator/check_deallocate_null.cc [new file with mode: 0644]
libstdc++-v3/testsuite/testsuite_allocator.h
This page took 0.060836 seconds and 5 git commands to generate.