all collected userdata must go to the end of the list of finalizers

This commit is contained in:
Roberto Ierusalimschy
2005-02-11 18:03:35 -02:00
parent af39352632
commit 678d2fb2ac
2 changed files with 26 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.h,v 2.12 2005/01/14 14:19:42 roberto Exp $
** $Id: lstate.h,v 2.13 2005/01/18 17:18:09 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -77,7 +77,7 @@ typedef struct global_State {
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 *tmudata; /* list of userdata to be GC */
GCObject *tmudata; /* last element of list of userdata to be GC */
Mbuffer buff; /* temporary buffer for string concatentation */
lu_mem GCthreshold;
lu_mem totalbytes; /* number of bytes currently allocated */