MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxCleanupFinalizationRegistries

Function fxCleanupFinalizationRegistries

xs/sources/xsMapSet.c:2091–2104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2089}
2090
2091void fxCleanupFinalizationRegistries(txMachine* the)
2092{
2093 txSlot** address = &(mxFinalizationRegistries.value.reference->next);
2094 txSlot* closure;
2095 while ((closure = *address)) {
2096 txSlot* registry = closure->value.closure;
2097 if (registry->value.finalizationRegistry.flags & XS_FINALIZATION_REGISTRY_CHANGED) {
2098 fx_FinalizationRegistryCleanup(the, registry, C_NULL);
2099 address = &(mxFinalizationRegistries.value.reference->next);
2100 }
2101 else
2102 address = &(closure->next);
2103 }
2104}
2105
2106

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected