зеркало из https://github.com/mozilla/gecko-dev.git
Bug 868334 - test for MacroAssembler::oom in nextJump (r=sstangl)
--HG-- extra : rebase_source : 0f24502942176278fb94d3d978941deac1d77050
This commit is contained in:
Родитель
e0254be427
Коммит
7eb1eb3349
|
@ -2650,6 +2650,11 @@ public:
|
|||
// the head of the jump list) is bound.
|
||||
bool nextJump(const JmpSrc& from, JmpSrc* next)
|
||||
{
|
||||
// Sanity check - if the assembler has OOM'd, it will start overwriting
|
||||
// its internal buffer and thus our links could be garbage.
|
||||
if (oom())
|
||||
return false;
|
||||
|
||||
char* code = reinterpret_cast<char*>(m_formatter.data());
|
||||
int32_t offset = getInt32(code + from.m_offset);
|
||||
if (offset == -1)
|
||||
|
|
Загрузка…
Ссылка в новой задаче