gcc/libstdc++-v3/src
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
..
allocator-inst.cc re PR libstdc++/16614 (Excessive resource usage in __mt_alloc) 2004-09-01 22:17:00 +00:00
codecvt.cc
complex_io.cc
concept-inst.cc
ctype.cc
debug_list.cc
debug.cc debug.cc (_Error_formatter::_M_print_string): Fix thinko, memmove is not needed, memcpy suffices. 2004-08-13 16:53:12 +00:00
ext-inst.cc
fstream-inst.cc
functexcept.cc
globals_io.cc
globals_locale.cc
io-inst.cc
ios_failure.cc
ios_init.cc re PR libstdc++/16959 (Segmentation fault in ios_base::sync_with_stdio) 2004-08-11 09:31:13 +00:00
ios_locale.cc
ios.cc stl_bvector.h: Trivial formatting fixes. 2004-08-09 13:51:33 +00:00
istream-inst.cc
limits.cc
list.cc
locale_facets.cc
locale_init.cc
locale-inst.cc
locale-misc-inst.cc
locale.cc
localename.cc
Makefile.am re PR libstdc++/16614 (Excessive resource usage in __mt_alloc) 2004-09-01 22:17:00 +00:00
Makefile.in re PR libstdc++/16614 (Excessive resource usage in __mt_alloc) 2004-09-01 22:17:00 +00:00
misc-inst.cc
mt_allocator.cc re PR libstdc++/16614 (Excessive resource usage in __mt_alloc) 2004-09-01 22:17:00 +00:00
ostream-inst.cc
pool_allocator.cc re PR libstdc++/16614 (Excessive resource usage in __mt_alloc) 2004-09-01 22:17:00 +00:00
sstream-inst.cc
stdexcept.cc
streambuf-inst.cc
string-inst.cc
strstream.cc
tree.cc
valarray-inst.cc indirect_array.h: Trivial formatting fixes. 2004-08-16 14:50:31 +00:00
wlocale-inst.cc
wstring-inst.cc