forked from boostorg/smart_ptr
Made the default page size 512 (g++ 2.96 on Red Hat 7.2 dislikes 496.)
[SVN r17272]
This commit is contained in:
@ -54,6 +54,10 @@ template<unsigned size, unsigned align> struct allocator_impl
|
|||||||
// and don't interfere with ::new.
|
// and don't interfere with ::new.
|
||||||
//
|
//
|
||||||
// The other alternative is to use much bigger pages (1M.)
|
// 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)
|
#if defined(BOOST_QA_PAGE_SIZE)
|
||||||
|
|
||||||
@ -61,7 +65,7 @@ template<unsigned size, unsigned align> struct allocator_impl
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
enum { items_per_page = 496 / size }; // 1048560 / size
|
enum { items_per_page = 512 / size }; // 1048560 / size
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user