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.
This commit is contained in:
Roberto Ierusalimschy
2020-07-08 15:36:48 -03:00
parent 31b8c2d438
commit 56ec432281
2 changed files with 4 additions and 2 deletions

2
lmem.c
View File

@@ -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