mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1177922 - Fix a bogus assert on OOM in markSafepointAt. r=nbp
This commit is contained in:
parent
92399d87fd
commit
0e02ac6ab3
@ -1002,7 +1002,7 @@ CodeGeneratorShared::markSafepoint(LInstruction* ins)
|
|||||||
void
|
void
|
||||||
CodeGeneratorShared::markSafepointAt(uint32_t offset, LInstruction* ins)
|
CodeGeneratorShared::markSafepointAt(uint32_t offset, LInstruction* ins)
|
||||||
{
|
{
|
||||||
MOZ_ASSERT_IF(!safepointIndices_.empty(),
|
MOZ_ASSERT_IF(!safepointIndices_.empty() && !masm.oom(),
|
||||||
offset - safepointIndices_.back().displacement() >= sizeof(uint32_t));
|
offset - safepointIndices_.back().displacement() >= sizeof(uint32_t));
|
||||||
masm.propagateOOM(safepointIndices_.append(SafepointIndex(offset, ins->safepoint())));
|
masm.propagateOOM(safepointIndices_.append(SafepointIndex(offset, ins->safepoint())));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user