From 9b7a12c46d85666e0e60efd79b39495589e497e8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 26 Nov 2010 12:32:31 -0200 Subject: finalizers (__gc) for tables --- lstate.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index a8923ca3..40c3ac16 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.67 2010/09/30 17:21:31 roberto Exp roberto $ +** $Id: lstate.h,v 2.68 2010/10/29 17:52:46 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -32,9 +32,9 @@ ** when traversing the respective threads, but the thread may already be ** dead, while the upvalue is still accessible through closures.) ** -** Userdata with finalizers are kept in the list g->udgc. +** Objects with finalizers are kept in the list g->finobj. ** -** The list g->tobefnz links all userdata being finalized. +** The list g->tobefnz links all objects being finalized. */ @@ -125,7 +125,7 @@ typedef struct global_State { lu_byte gckind; /* kind of GC running */ int sweepstrgc; /* position of sweep in `strt' */ GCObject *allgc; /* list of all collectable objects */ - GCObject *udgc; /* list of collectable userdata with finalizers */ + GCObject *finobj; /* list of collectable objects with finalizers */ GCObject **sweepgc; /* current position of sweep */ GCObject *gray; /* list of gray objects */ GCObject *grayagain; /* list of objects to be traversed atomically */ -- cgit v1.2.3-55-g6feb