mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 843733 part 2 - Use IonAllocPolicy allocator instead of the system one. r=mjronseb
This commit is contained in:
parent
c0c624734d
commit
19dd62cd81
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user