Home | History | Annotate | Download | only in src

Lines Matching defs:weak

115 ** tells whether a key or value can be cleared from a weak
116 ** table. Non-collectable objects are never removed from weak
124 markobject(g, rawtsvalue(o)); /* strings are `values', so are never weak */
339 g->weak = g->allweak = g->ephemeron = NULL;
372 linktable(h, &g->weak); /* has to be cleared later */
438 if (mode && ttisstring(mode) && /* is there a weak mode? */
441 (weakkey || weakvalue))) { /* is really weak? */
447 else /* all weak */
450 else /* not weak */
583 GCObject *weak = g->weak; /* save original lists */
586 g->weak = g->grayagain = g->ephemeron = NULL;
589 propagatelist(g, weak);
1017 /* clear values from weak tables, before checking finalizers */
1018 clearvalues(g, g->weak, NULL);
1020 origweak = g->weak; origall = g->allweak;
1028 /* remove dead objects from weak tables */
1031 /* clear values from resurrected weak tables */
1032 clearvalues(g, g->weak, origweak);