reentrant implementation of garbage collection

This commit is contained in:
Roberto Ierusalimschy
2001-12-11 14:52:57 -02:00
parent 9d801f43d4
commit ed9be5e1f0
3 changed files with 31 additions and 25 deletions

View File

@@ -81,8 +81,9 @@ typedef struct global_State {
Proto *rootproto; /* list of all prototypes */
Closure *rootcl; /* list of all closures */
Table *roottable; /* list of all tables */
Udata *rootudata; /* list of all userdata */
UpVal *rootupval; /* list of closed up values */
Udata *rootudata; /* list of all userdata */
Udata *tmudata; /* list of userdata to be GC */
TString *tmname[TM_N]; /* array with tag-method names */
} global_State;