OSDN Git Service

2004-09-01 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Sep 2004 22:17:00 +0000 (22:17 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Sep 2004 22:17:00 +0000 (22:17 +0000)
commit8ca34f016893950ea5f922962a7a9a2e78d10a85
tree011bcfe52cc2afab1d0b8cb19946c66ceddd599d
parent197f99883d299fc7e68e0f92f798c90319ec1150
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86936 138bc75d-0d04-0410-961f-82ee72b054a4
23 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/config/linker-map.gnu
libstdc++-v3/docs/html/ext/mt_allocator.html
libstdc++-v3/include/ext/mt_allocator.h
libstdc++-v3/src/Makefile.am
libstdc++-v3/src/Makefile.in
libstdc++-v3/src/allocator-inst.cc
libstdc++-v3/src/mt_allocator.cc [new file with mode: 0644]
libstdc++-v3/src/pool_allocator.cc [moved from libstdc++-v3/src/allocator.cc with 97% similarity]
libstdc++-v3/testsuite/ext/allocators.cc [deleted file]
libstdc++-v3/testsuite/ext/debug_allocator/check_new.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/debug_allocator/instantiate.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/malloc_allocator/check_new.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/malloc_allocator/instantiate.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/mt_allocator/check_new.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/mt_allocator/instantiate.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/mt_allocator/tune-1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/mt_allocator/tune-2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/mt_allocator/tune-3.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/mt_allocator/tune-4.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/pool_allocator/check_new.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/pool_allocator/instantiate.cc [new file with mode: 0644]
libstdc++-v3/testsuite/testsuite_allocator.h