$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r49064 - sandbox/shifted_ptr/boost/detail
From: phil_at_[hidden]
Date: 2008-09-30 03:34:51
Author: pbouchard
Date: 2008-09-30 03:34:48 EDT (Tue, 30 Sep 2008)
New Revision: 49064
URL: http://svn.boost.org/trac/boost/changeset/49064
Log:
Rounding allocated chunk size to integer
Text files modified: 
   sandbox/shifted_ptr/boost/detail/sh_owned_base_nt.hpp |     6 ++++--                                  
   1 files changed, 4 insertions(+), 2 deletions(-)
Modified: sandbox/shifted_ptr/boost/detail/sh_owned_base_nt.hpp
==============================================================================
--- sandbox/shifted_ptr/boost/detail/sh_owned_base_nt.hpp	(original)
+++ sandbox/shifted_ptr/boost/detail/sh_owned_base_nt.hpp	2008-09-30 03:34:48 EDT (Tue, 30 Sep 2008)
@@ -80,7 +80,9 @@
     std::auto_ptr<pool_lii>
 #endif
 {
-    pool() : boost::pool<>(1)
+	static const size_t chunk_size_ = sizeof(int);
+
+    pool() : boost::pool<>(chunk_size_)
     {
         reset(new pool_lii());
     }
@@ -100,7 +102,7 @@
     
     void * allocate(std::size_t s)
     {
-        void * p = ordered_malloc(s);
+        void * p = ordered_malloc(s / chunk_size_ + 1);
         
         get()->push_back(numeric::interval<int>((int) p, int((char *)(p) + s)));