Bug 843733 part 2 - Use IonAllocPolicy allocator instead of the system one. r=mjronseb

This commit is contained in:
Nicolas B. Pierron 2013-03-04 23:17:09 -08:00
parent c0c624734d
commit 19dd62cd81

View File

@ -148,10 +148,14 @@ struct Pool
poolData = static_cast<uint8_t*>(malloc_(buffSize * immSize));
if (poolData == NULL)
return false;
other = new Pool(other->maxOffset, other->immSize, other->instSize, other->bias,
other->alignment, other->isBackref, other->canDedup);
if (other == NULL)
void *otherSpace = malloc_(sizeof(Pool));
if (otherSpace == NULL)
return false;
other = new (otherSpace) Pool(other->maxOffset, other->immSize, other->instSize,
other->bias, other->alignment, other->isBackref,
other->canDedup);
new (&loadOffsets) LoadOffsets;
limitingUser = BufferOffset();