MCPcopy Create free account
hub / github.com/GNOME/gjs / gjs_context_maybe_gc

Function gjs_context_maybe_gc

gjs/context.cpp:1217–1220  ·  view source on GitHub ↗

* gjs_context_maybe_gc: * @self: a #GjsContext * * Similar to the Spidermonkey JS_MaybeGC() call which * heuristically looks at JS runtime memory usage and * may initiate a garbage collection. * * This function always unconditionally invokes JS_MaybeGC(), but * additionally looks at memory usage from the system malloc() * when available, and if the delta has grown since the last run * si

Source from the content-addressed store, hash-verified

1215 * transitions to an idle state.
1216 */
1217void gjs_context_maybe_gc(GjsContext* self) {
1218 GjsContextPrivate* gjs = GjsContextPrivate::from_object(self);
1219 gjs_maybe_gc(gjs->context());
1220}
1221
1222/**
1223 * gjs_context_gc:

Callers

nothing calls this directly

Calls 2

gjs_maybe_gcFunction · 0.85
contextMethod · 0.80

Tested by

no test coverage detected