GC now considers an "estimate" of object size, instead of just the number

of objects.
This commit is contained in:
Roberto Ierusalimschy
1997-10-23 14:26:37 -02:00
parent 81489beea1
commit 907368ead5
8 changed files with 54 additions and 34 deletions

4
lgc.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: $
** $Id: lgc.h,v 1.1 1997/09/16 19:25:59 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
@@ -11,7 +11,7 @@
#include "lobject.h"
extern long luaC_threshold;
extern unsigned long luaC_threshold;
void luaC_checkGC (void);
TObject* luaC_getref (int ref);