mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Prevent GC from occuring during IC linking (bug 837714, r=bhackett).
--HG-- extra : rebase_source : 4973d1be905775ea5623dbe808a034659e8c7797
This commit is contained in:
parent
69efae8a6e
commit
68d9b3d62a
@ -14,6 +14,7 @@
|
||||
#include "ion/IonCompartment.h"
|
||||
#include "assembler/jit/ExecutableAllocator.h"
|
||||
#include "ion/IonMacroAssembler.h"
|
||||
#include "jsgcinlines.h"
|
||||
|
||||
namespace js {
|
||||
namespace ion {
|
||||
@ -30,6 +31,7 @@ class Linker
|
||||
|
||||
IonCode *newCode(JSContext *cx, IonCompartment *comp) {
|
||||
AssertCanGC();
|
||||
gc::AutoSuppressGC suppressGC(cx);
|
||||
if (masm.oom())
|
||||
return fail(cx);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user