From 907368ead5978b689a97118b75e89a2095122530 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 23 Oct 1997 14:26:37 -0200 Subject: GC now considers an "estimate" of object size, instead of just the number of objects. --- lobject.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index d07436ad..ee97f8cd 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 1.4 1997/10/16 10:59:34 roberto Exp roberto $ +** $Id: lobject.h,v 1.5 1997/10/16 20:07:40 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -158,7 +158,12 @@ typedef struct Hash { } Hash; -extern long luaO_nentities; +/* +** a gross estimation of number of memory "blocks" allocated +** (a block is *roughly* 32 bytes) +*/ +extern unsigned long luaO_nblocks; + extern char *luaO_typenames[]; int luaO_equalObj (TObject *t1, TObject *t2); -- cgit v1.2.3-55-g6feb