new way to count `nblocks' for GC (try to count bytes).

This commit is contained in:
Roberto Ierusalimschy
2000-09-29 09:42:13 -03:00
parent ca7fd50a4e
commit dad808a73a
18 changed files with 95 additions and 63 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ltable.c,v 1.54 2000/08/31 14:08:27 roberto Exp roberto $
** $Id: ltable.c,v 1.55 2000/09/11 20:29:27 roberto Exp roberto $
** Lua tables (hash)
** See Copyright Notice in lua.h
*/
@@ -27,7 +27,7 @@
#include "ltable.h"
#define gcsize(L, n) numblocks(L, n*2, sizeof(Hash))
#define gcsize(L, n) (sizeof(Hash)+(n)*sizeof(Node))