double newSize in growMemory

This commit is contained in:
MITSUNARI Shigeo 2012-08-22 15:37:50 +09:00
parent 40627d8ef5
commit 02d6644463

View file

@ -472,7 +472,8 @@ protected:
*/
void growMemory()
{
const size_t newSize = maxSize_ + inner::ALIGN_PAGE_SIZE;
// const size_t newSize = maxSize_ + inner::ALIGN_PAGE_SIZE;
const size_t newSize = maxSize_ * 2;
uint8 *newTop = alloc_->alloc(newSize);
if (newTop == 0) throw ERR_CANT_ALLOC;
for (size_t i = 0; i < size_; i++) newTop[i] = top_[i];