aboutsummaryrefslogtreecommitdiff
path: root/lmem.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-11-01 15:42:08 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-11-01 15:42:08 -0300
commit8047b2d03eaaeee44871a11f8d3a3135f2639b1a (patch)
tree2b2d246e2c63ba0accd7c3463a0d331669abe1ef /lmem.h
parentee645472ebe153e2c6669c84a632297a8110bdb6 (diff)
downloadlua-8047b2d03eaaeee44871a11f8d3a3135f2639b1a.tar.gz
lua-8047b2d03eaaeee44871a11f8d3a3135f2639b1a.tar.bz2
lua-8047b2d03eaaeee44871a11f8d3a3135f2639b1a.zip
Tables have a 'lastfree' information only when needed
Only tables with some minimum number of entries in their hash part have a 'lastfree' field, kept in a header before the node vector.
Diffstat (limited to 'lmem.h')
-rw-r--r--lmem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lmem.h b/lmem.h
index 8c75a44b..c5dada9c 100644
--- a/lmem.h
+++ b/lmem.h
@@ -63,6 +63,8 @@
63 63
64#define luaM_newobject(L,tag,s) luaM_malloc_(L, (s), tag) 64#define luaM_newobject(L,tag,s) luaM_malloc_(L, (s), tag)
65 65
66#define luaM_newblock(L, size) luaM_newvector(L, size, char)
67
66#define luaM_growvector(L,v,nelems,size,t,limit,e) \ 68#define luaM_growvector(L,v,nelems,size,t,limit,e) \
67 ((v)=cast(t *, luaM_growaux_(L,v,nelems,&(size),sizeof(t), \ 69 ((v)=cast(t *, luaM_growaux_(L,v,nelems,&(size),sizeof(t), \
68 luaM_limitN(limit,t),e))) 70 luaM_limitN(limit,t),e)))