gcc/libstdc++-v3/testsuite/ext/mt_allocator
Paolo Carlini b929615a7c mt_allocator.h (struct __per_type_pool_policy<,, [...]): Scale _M_chunk_size too with sizeof(_Tp)...
2005-01-26  Paolo Carlini  <pcarlini@suse.de>

	* include/ext/mt_allocator.h
	(struct __per_type_pool_policy<,, false>::_S_get_pool,
	struct __per_type_pool_policy<,, true>::_S_get_pool): Scale
	_M_chunk_size too with sizeof(_Tp), otherwise the allocator
	breaks down as soon as sizeof(_Tp) >~ _S_chunk_size / 128;
	reduce to 64 the multiplier for _M_max_bytes (safer wrt
	_Binmap_type being a short); trivial reformattings.
	* testsuite/ext/mt_allocator/check_allocate_big_per_type.cc: New.

From-SVN: r94268
2005-01-26 16:34:58 +00:00
..
check_allocate_big_per_type.cc mt_allocator.h (struct __per_type_pool_policy<,, [...]): Scale _M_chunk_size too with sizeof(_Tp)... 2005-01-26 16:34:58 +00:00
check_allocate_max_size.cc bitmap_allocator.h (allocate): Throw std::bad_alloc when n > max_size(). 2004-10-21 00:06:02 +00:00
check_deallocate_null_thread.cc mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type. 2004-10-28 20:46:08 +00:00
check_deallocate_null.cc mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type. 2004-10-28 20:46:08 +00:00
check_delete.cc testsuite_allocator.h (check_delete): New. 2004-10-29 21:03:07 +00:00
check_new.cc testsuite_allocator.h (check_delete): New. 2004-10-29 21:03:07 +00:00
deallocate_global_thread-1.cc mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type. 2004-10-28 20:46:08 +00:00
deallocate_global_thread-3.cc mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type. 2004-10-28 20:46:08 +00:00
deallocate_global-2.cc mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type. 2004-10-28 20:46:08 +00:00
deallocate_global-4.cc mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type. 2004-10-28 20:46:08 +00:00
deallocate_local_thread-1.cc mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type. 2004-10-28 20:46:08 +00:00
deallocate_local_thread-3.cc mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type. 2004-10-28 20:46:08 +00:00
deallocate_local-2.cc mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type. 2004-10-28 20:46:08 +00:00
deallocate_local-4.cc mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type. 2004-10-28 20:46:08 +00:00
instantiate.cc mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type. 2004-10-28 20:46:08 +00:00
tune-1.cc mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type. 2004-10-28 20:46:08 +00:00
tune-2.cc mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type. 2004-10-28 20:46:08 +00:00
tune-3.cc mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type. 2004-10-28 20:46:08 +00:00
tune-4.cc mt_allocator.h (__common_pool_policy): Add template template parameter for pool class type. 2004-10-28 20:46:08 +00:00