From 56ec4322817b0e9aef6084c278dcf24fda7bed1c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 8 Jul 2020 15:36:48 -0300 Subject: 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. --- lmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lmem.c') diff --git a/lmem.c b/lmem.c index 65bfa524..43739bff 100644 --- a/lmem.c +++ b/lmem.c @@ -22,7 +22,7 @@ #include "lstate.h" -#if defined(HARDMEMTESTS) +#if defined(EMERGENCYGCTESTS) /* ** First allocation will fail whenever not building initial state ** and not shrinking a block. (This fail will trigger 'tryagain' and -- cgit v1.2.3-55-g6feb