mirror of
https://github.com/herumi/xbyak
synced 2024-11-21 16:09:11 -07:00
double newSize in growMemory
This commit is contained in:
parent
40627d8ef5
commit
02d6644463
1 changed files with 2 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue