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

Method async_closure_enqueue_for_gc

gjs/context.cpp:1188–1194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1186}
1187
1188void GjsContextPrivate::async_closure_enqueue_for_gc(Gjs::Closure* trampoline) {
1189 // Because we can't free the mmap'd data for a callback
1190 // while it's in use, this list keeps track of ones that
1191 // will be freed the next time gc happens
1192 g_assert(!trampoline->cx() || trampoline->cx() == m_cx);
1193 m_async_closures.emplace_back(trampoline);
1194}
1195
1196/**
1197 * gjs_context_maybe_gc:

Callers 1

callback_closureMethod · 0.80

Calls 1

cxMethod · 0.80

Tested by

no test coverage detected