From ce36b11fd56509a680300156007242c7cedc7faa Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 7 Feb 2003 19:06:28 +0000 Subject: [PATCH] Made the default page size 512 (g++ 2.96 on Red Hat 7.2 dislikes 496.) [SVN r17272] --- include/boost/detail/quick_allocator.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/detail/quick_allocator.hpp b/include/boost/detail/quick_allocator.hpp index 195e602..f206b79 100644 --- a/include/boost/detail/quick_allocator.hpp +++ b/include/boost/detail/quick_allocator.hpp @@ -54,6 +54,10 @@ template struct allocator_impl // and don't interfere with ::new. // // The other alternative is to use much bigger pages (1M.) + // + // It is surprisingly easy to hit pathological behavior by + // varying the page size. g++ 2.96 on Red Hat Linux 7.2, + // for example, passionately dislikes 496. 512 seems OK. #if defined(BOOST_QA_PAGE_SIZE) @@ -61,7 +65,7 @@ template struct allocator_impl #else - enum { items_per_page = 496 / size }; // 1048560 / size + enum { items_per_page = 512 / size }; // 1048560 / size #endif