mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1478902 Part 2 - Nursery strings allocation code uses the wrong pointer r=sfink
Some of the allocation code here uses the wrong pointer for the strings nursery position. The bug is benign because the nursery is shared. --HG-- extra : rebase_source : 27a14aa077d8de6e616d26759aa4e8e0a6bb5bb9
This commit is contained in:
parent
bf12405840
commit
9133f15f25
@ -972,7 +972,7 @@ MacroAssembler::nurseryAllocateString(Register result, Register temp, gc::AllocK
|
|||||||
void* nurseryPosAddr = zone->addressOfStringNurseryPosition();
|
void* nurseryPosAddr = zone->addressOfStringNurseryPosition();
|
||||||
const void* nurseryEndAddr = zone->addressOfStringNurseryCurrentEnd();
|
const void* nurseryEndAddr = zone->addressOfStringNurseryCurrentEnd();
|
||||||
|
|
||||||
movePtr(ImmPtr(zone->addressOfNurseryPosition()), temp);
|
movePtr(ImmPtr(nurseryPosAddr), temp);
|
||||||
loadPtr(Address(temp, 0), result);
|
loadPtr(Address(temp, 0), result);
|
||||||
addPtr(Imm32(totalSize), result);
|
addPtr(Imm32(totalSize), result);
|
||||||
const ptrdiff_t endOffset =
|
const ptrdiff_t endOffset =
|
||||||
|
Loading…
Reference in New Issue
Block a user