gcc/libstdc++-v3/testsuite/ext
Benjamin Kosnik 8bfd0a46ea re PR libstdc++/16614 (Excessive resource usage in __mt_alloc)
2004-09-01  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/16614
	* include/ext/mt_allocator.h (__mt_base): Not type dependent,
	split into..
	(__pool): New, specialize.
	(__common_pool): New, static bits here.
	(__per_type_pool): New, and here.
	(__mt_alloc_base): New.
	(__mt_alloc): Add template parameter, inherit from it.
	* src/allocator.cc: Split this...
	* src/allocator-inst.cc: And this...
	* src/pool_allocator.cc: ...into this.
	* src/mt_allocator.cc: ... and this. Add definitions for
	__mt_base.
	* src/Makefile.am (sources): Split allocator.cc to
	pool_allocator.cc and mt_allocator.cc.
	* src/Makefile.in: Regenerate.
	* config/linker-map.gnu: Add symbols.
	* docs/html/ext/mt_allocator.html: Document new design.
	* testsuite/ext/mt_allocator/tune-1.cc: New.
	* testsuite/ext/mt_allocator/tune-2.cc: New.
	* testsuite/ext/mt_allocator/tune-3.cc: New.
	* testsuite/ext/mt_allocator/tune-4.cc: New.

	* testsuite/testsuite_allocator.h (__gnu_test::check_new): New.
	* testsuite/ext/allocators.cc: Use check_new, split into...
	* testsuite/ext/mt_allocator/check_new.cc: this.
	* testsuite/ext/pool_allocator/check_new.cc: this.
	* testsuite/ext/malloc_allocator/check_new.cc: this.
	* testsuite/ext/debug_allocator/check_new.cc: this.
	* testsuite/ext/mt_allocator/instantiate.cc: this.
	* testsuite/ext/pool_allocator/instantiate.cc: this.
	* testsuite/ext/malloc_allocator/instantiate.cc: this.
	* testsuite/ext/debug_allocator/instantiate.cc: this.

From-SVN: r86936
2004-09-01 22:17:00 +00:00
..
debug_allocator re PR libstdc++/16614 (Excessive resource usage in __mt_alloc) 2004-09-01 22:17:00 +00:00
enc_filebuf
malloc_allocator re PR libstdc++/16614 (Excessive resource usage in __mt_alloc) 2004-09-01 22:17:00 +00:00
mt_allocator re PR libstdc++/16614 (Excessive resource usage in __mt_alloc) 2004-09-01 22:17:00 +00:00
pool_allocator re PR libstdc++/16614 (Excessive resource usage in __mt_alloc) 2004-09-01 22:17:00 +00:00
rope rope (rope(_CharT, const allocator_type&)): Fix to use _Data_allocate. 2004-06-16 17:29:16 +00:00
stdio_filebuf/char 9555-ic.cc: Clarify assertion, set test variable to false before assert. 2004-04-19 19:00:09 +00:00
stdio_sync_filebuf 9555-ic.cc: Clarify assertion, set test variable to false before assert. 2004-04-19 19:00:09 +00:00
14648.cc
concept_checks.cc
hash_check_construct_destroy.cc stl_construct.h (_Destroy): New three-argument overload that takes an allocator argument. 2004-07-28 16:37:20 +00:00
hash_map.cc
hash_set_explicit_instantiation.cc re PR libstdc++/16844 (Explicit instantiation failing) 2004-08-02 04:40:19 +00:00
hash_set.cc
headers.cc
pod_char_traits.cc
slist_check_construct_destroy.cc stl_construct.h (_Destroy): New three-argument overload that takes an allocator argument. 2004-07-28 16:37:20 +00:00
slist_explicit_instantiation.cc re PR libstdc++/16844 (Explicit instantiation failing) 2004-08-02 04:40:19 +00:00