aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lgc.h b/lgc.h
index 6b1c2861..9ba7ecb0 100644
--- a/lgc.h
+++ b/lgc.h
@@ -123,7 +123,7 @@
123#define LUAI_GENMINORMUL 20 123#define LUAI_GENMINORMUL 20
124 124
125/* wait memory to double before starting new cycle */ 125/* wait memory to double before starting new cycle */
126#define LUAI_GCPAUSE 200 /* 200% */ 126#define LUAI_GCPAUSE 200
127 127
128/* 128/*
129** some gc parameters are stored divided by 4 to allow a maximum value 129** some gc parameters are stored divided by 4 to allow a maximum value
@@ -139,6 +139,13 @@
139 139
140 140
141/* 141/*
142** Check whether the declared GC mode is generational. While in
143** generational mode, the collector can go temporarily to incremental
144** mode to improve performance. This is signaled by 'g->lastatomic != 0'.
145*/
146#define isdecGCmodegen(g) (g->gckind == KGC_GEN || g->lastatomic != 0)
147
148/*
142** Does one step of collection when debt becomes positive. 'pre'/'pos' 149** Does one step of collection when debt becomes positive. 'pre'/'pos'
143** allows some adjustments to be done only when needed. macro 150** allows some adjustments to be done only when needed. macro
144** 'condchangemem' is used only for heavy tests (forcing a full 151** 'condchangemem' is used only for heavy tests (forcing a full