mt_allocator.h (__mt_alloc<>::allocate): Factor out some duplicated code.
authorPaolo Carlini <pcarlini@suse.de>
Sat, 3 Apr 2004 13:39:16 +0000 (13:39 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 3 Apr 2004 13:39:16 +0000 (13:39 +0000)
commitc8333c0fd57213d3822dde13c51c387705af1681
treee36eddc14c2be56980c947413909455e44f82cc1
parenta0eabb87e15f593e1c6ce583ee1f11112d94101d
mt_allocator.h (__mt_alloc<>::allocate): Factor out some duplicated code.

2004-04-03  Paolo Carlini  <pcarlini@suse.de>

* include/ext/mt_allocator.h (__mt_alloc<>::allocate): Factor out
some duplicated code.
(__mt_alloc<>::_Bin_record): Spare the space of _M_free and _M_used
in the single threaded case.
* testsuite/performance/20_util/allocator/list_sort_search.cc:
Reorder and renumber the tests consistently with the other testfiles.
* testsuite/performance/20_util/allocator/map_mt_find.cc: Ditto.
* testsuite/performance/20_util/allocator/map_thread.cc: Ditto.
* testsuite/performance/20_util/allocator/producer_consumer.cc: Ditto.

From-SVN: r80375
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/mt_allocator.h
libstdc++-v3/testsuite/performance/20_util/allocator/list_sort_search.cc
libstdc++-v3/testsuite/performance/20_util/allocator/map_mt_find.cc
libstdc++-v3/testsuite/performance/20_util/allocator/map_thread.cc
libstdc++-v3/testsuite/performance/20_util/allocator/producer_consumer.cc