* 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
| 1215 | * transitions to an idle state. |
| 1216 | */ |
| 1217 | void 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: |
nothing calls this directly
no test coverage detected