MCPcopy Create free account
hub / github.com/F-Stack/f-stack / clearkeys

Function clearkeys

freebsd/contrib/openzfs/module/lua/lgc.c:624–635  ·  view source on GitHub ↗

** clear entries with unmarked keys from all weaktables in list 'l' up ** to element 'f' */

Source from the content-addressed store, hash-verified

622** to element 'f'
623*/
624static void clearkeys (global_State *g, GCObject *l, GCObject *f) {
625 for (; l != f; l = gco2t(l)->gclist) {
626 Table *h = gco2t(l);
627 Node *n, *limit = gnodelast(h);
628 for (n = gnode(h, 0); n < limit; n++) {
629 if (!ttisnil(gval(n)) && (iscleared(g, gkey(n)))) {
630 setnilvalue(gval(n)); /* remove value ... */
631 removeentry(n); /* and remove entry from table */
632 }
633 }
634 }
635}
636
637
638/*

Callers 1

atomicFunction · 0.85

Calls 2

isclearedFunction · 0.70
removeentryFunction · 0.70

Tested by

no test coverage detected