mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-08-01 21:54:28 +02:00
Added BOOST_QA_PAGE_SIZE.
[SVN r17270]
This commit is contained in:
@@ -55,8 +55,16 @@ template<unsigned size, unsigned align> struct allocator_impl
|
|||||||
//
|
//
|
||||||
// The other alternative is to use much bigger pages (1M.)
|
// The other alternative is to use much bigger pages (1M.)
|
||||||
|
|
||||||
|
#if defined(BOOST_QA_PAGE_SIZE)
|
||||||
|
|
||||||
|
enum { items_per_page = BOOST_QA_PAGE_SIZE / size };
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
enum { items_per_page = 496 / size }; // 1048560 / size
|
enum { items_per_page = 496 / size }; // 1048560 / size
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef BOOST_HAS_THREADS
|
#ifdef BOOST_HAS_THREADS
|
||||||
static lightweight_mutex mutex;
|
static lightweight_mutex mutex;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user