mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1145997 - Suppress GC in debugger GC callback r=sfink
This commit is contained in:
parent
8e0dc8b734
commit
67ba4cd61f
@ -874,6 +874,10 @@ Debugger::wrapDebuggeeValue(JSContext* cx, MutableHandleValue vp)
|
||||
JSObject*
|
||||
Debugger::translateGCStatistics(JSContext* cx, const gcstats::Statistics& stats)
|
||||
{
|
||||
// If this functions triggers a GC then the statistics object will change
|
||||
// underneath us.
|
||||
gc::AutoSuppressGC suppressGC(cx);
|
||||
|
||||
RootedObject obj(cx, NewBuiltinClassInstance<PlainObject>(cx));
|
||||
if (!obj)
|
||||
return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user