some changes toward ephemerons

This commit is contained in:
Roberto Ierusalimschy
2007-10-29 14:51:20 -02:00
parent c06cc60946
commit 0e961ad47a
4 changed files with 101 additions and 58 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.h,v 2.27 2006/09/19 13:57:50 roberto Exp roberto $
** $Id: lstate.h,v 2.28 2007/02/07 17:48:52 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -78,7 +78,9 @@ typedef struct global_State {
GCObject **sweepgc; /* position of sweep in `rootgc' */
GCObject *gray; /* list of gray objects */
GCObject *grayagain; /* list of objects to be traversed atomically */
GCObject *weak; /* list of weak tables (to be cleared) */
GCObject *weakvalue; /* list of value-weak tables */
GCObject *weakkey; /* list of key-weak tables */
GCObject *weakkeyvalue; /* list of all-weak tables */
GCObject *tmudata; /* last element of list of userdata to be GC */
Mbuffer buff; /* temporary buffer for string concatentation */
lu_mem GCthreshold;