From 0e961ad47acbe2d67b72c90cc1ba0040f3907b75 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 29 Oct 2007 14:51:20 -0200 Subject: some changes toward ephemerons --- lstate.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 2cbcc7ce..393f477a 100644 --- a/lstate.h +++ b/lstate.h @@ -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; -- cgit v1.2.3-55-g6feb