aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-11-23 17:17:20 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-11-23 17:17:20 -0300
commitf356d5acdd9d8e8f7e9d1d7632c4657f945ff4f4 (patch)
treebaa2abdc9bd4707b42c0609da42aa1130757273b /lgc.h
parent76953316d1283ab6324b59b914ef53a521408444 (diff)
downloadlua-f356d5acdd9d8e8f7e9d1d7632c4657f945ff4f4.tar.gz
lua-f356d5acdd9d8e8f7e9d1d7632c4657f945ff4f4.tar.bz2
lua-f356d5acdd9d8e8f7e9d1d7632c4657f945ff4f4.zip
First version of GC counting objects for control
Still needs to review generational mode.
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lgc.h b/lgc.h
index c960e706..a4c54b47 100644
--- a/lgc.h
+++ b/lgc.h
@@ -135,10 +135,10 @@
135#define getgcparam(p) ((p) * 4) 135#define getgcparam(p) ((p) * 4)
136#define setgcparam(p,v) ((p) = (v) / 4) 136#define setgcparam(p,v) ((p) = (v) / 4)
137 137
138#define LUAI_GCMUL 100 138#define LUAI_GCMUL 300
139 139
140/* how much to allocate before next GC step (log2) */ 140/* how many objects to allocate before next GC step (log2) */
141#define LUAI_GCSTEPSIZE 13 /* 8 KB */ 141#define LUAI_GCSTEPSIZE 8 /* 256 objects */
142 142
143 143
144/* 144/*