aboutsummaryrefslogtreecommitdiff
path: root/lmem.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-07-08 15:36:48 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-07-08 15:36:48 -0300
commit56ec4322817b0e9aef6084c278dcf24fda7bed1c (patch)
treebd7ef9d481bca24f48289786f9e8f3979518779d /lmem.c
parent31b8c2d4380a762d1ed6a7faee74a1d107f86014 (diff)
downloadlua-56ec4322817b0e9aef6084c278dcf24fda7bed1c.tar.gz
lua-56ec4322817b0e9aef6084c278dcf24fda7bed1c.tar.bz2
lua-56ec4322817b0e9aef6084c278dcf24fda7bed1c.zip
Change in macro HARDMEMTESTS for testing GC
Macro HARDMEMTESTS broke in two: HARDMEMTESTS forces a full GC cycle at every point where the GC can run. New macro EMERGENCYGCTESTS forces an emergency collection at every memory allocation.
Diffstat (limited to 'lmem.c')
-rw-r--r--lmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lmem.c b/lmem.c
index 65bfa524..43739bff 100644
--- a/lmem.c
+++ b/lmem.c
@@ -22,7 +22,7 @@
22#include "lstate.h" 22#include "lstate.h"
23 23
24 24
25#if defined(HARDMEMTESTS) 25#if defined(EMERGENCYGCTESTS)
26/* 26/*
27** First allocation will fail whenever not building initial state 27** First allocation will fail whenever not building initial state
28** and not shrinking a block. (This fail will trigger 'tryagain' and 28** and not shrinking a block. (This fail will trigger 'tryagain' and