diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-10-23 14:26:37 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-10-23 14:26:37 -0200 |
commit | 907368ead5978b689a97118b75e89a2095122530 (patch) | |
tree | ed428793e87ab4a3c8de49be5586878af54c8d34 /lobject.h | |
parent | 81489beea1a201b58dba964b6bbfd263f3683f25 (diff) | |
download | lua-907368ead5978b689a97118b75e89a2095122530.tar.gz lua-907368ead5978b689a97118b75e89a2095122530.tar.bz2 lua-907368ead5978b689a97118b75e89a2095122530.zip |
GC now considers an "estimate" of object size, instead of just the number
of objects.
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 1.4 1997/10/16 10:59:34 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.5 1997/10/16 20:07:40 roberto Exp roberto $ |
3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -158,7 +158,12 @@ typedef struct Hash { | |||
158 | } Hash; | 158 | } Hash; |
159 | 159 | ||
160 | 160 | ||
161 | extern long luaO_nentities; | 161 | /* |
162 | ** a gross estimation of number of memory "blocks" allocated | ||
163 | ** (a block is *roughly* 32 bytes) | ||
164 | */ | ||
165 | extern unsigned long luaO_nblocks; | ||
166 | |||
162 | extern char *luaO_typenames[]; | 167 | extern char *luaO_typenames[]; |
163 | 168 | ||
164 | int luaO_equalObj (TObject *t1, TObject *t2); | 169 | int luaO_equalObj (TObject *t1, TObject *t2); |