mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Prevent GC from occuring during IC linking (bug 837714, r=bhackett).
--HG-- extra : rebase_source : 4973d1be905775ea5623dbe808a034659e8c7797
This commit is contained in:
parent
abd9343591
commit
181154e5a3
@ -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