mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
new way to count `nblocks' for GC (try to count bytes).
This commit is contained in:
parent
ca7fd50a4e
commit
dad808a73a
18 changed files with 95 additions and 63 deletions
4
ltable.c
4
ltable.c
|
|
@ -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))
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue