| 1186 | } |
| 1187 | |
| 1188 | void 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: |