aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2016-11-07 10:38:35 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2016-11-07 10:38:35 -0200
commit7b1fba69b7a887e37e57744309299d134e76e06e (patch)
treee5743e7f4792f065bb9644e827e43eb9a9c03a22 /lgc.c
parent697593d8d5b2e2287919423006c53dcac31d2b70 (diff)
downloadlua-7b1fba69b7a887e37e57744309299d134e76e06e.tar.gz
lua-7b1fba69b7a887e37e57744309299d134e76e06e.tar.bz2
lua-7b1fba69b7a887e37e57744309299d134e76e06e.zip
using 'lastfree == NULL' to signal that table is using the dummy
node for its hash part + new macro 'allocsizenode'
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lgc.c b/lgc.c
index 7da00442..55a51870 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 2.212 2016/03/31 19:02:03 roberto Exp roberto $ 2** $Id: lgc.c,v 2.213 2016/10/19 12:31:42 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -467,7 +467,7 @@ static lu_mem traversetable (global_State *g, Table *h) {
467 else /* not weak */ 467 else /* not weak */
468 traversestrongtable(g, h); 468 traversestrongtable(g, h);
469 return sizeof(Table) + sizeof(TValue) * h->sizearray + 469 return sizeof(Table) + sizeof(TValue) * h->sizearray +
470 sizeof(Node) * cast(size_t, sizenode(h)); 470 sizeof(Node) * cast(size_t, allocsizenode(h));
471} 471}
472 472
473 473