mirror of https://github.com/rusefi/lua.git
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:
parent
31b8c2d438
commit
56ec432281
2
lmem.c
2
lmem.c
|
@ -22,7 +22,7 @@
|
||||||
#include "lstate.h"
|
#include "lstate.h"
|
||||||
|
|
||||||
|
|
||||||
#if defined(HARDMEMTESTS)
|
#if defined(EMERGENCYGCTESTS)
|
||||||
/*
|
/*
|
||||||
** First allocation will fail whenever not building initial state
|
** First allocation will fail whenever not building initial state
|
||||||
** and not shrinking a block. (This fail will trigger 'tryagain' and
|
** and not shrinking a block. (This fail will trigger 'tryagain' and
|
||||||
|
|
4
makefile
4
makefile
|
@ -40,7 +40,9 @@ CWARNS= $(CWARNSCPP) $(CWARNSC)
|
||||||
# Some useful compiler options for internal tests:
|
# Some useful compiler options for internal tests:
|
||||||
# -DHARDSTACKTESTS forces a reallocation of the stack at every point where
|
# -DHARDSTACKTESTS forces a reallocation of the stack at every point where
|
||||||
# the stack can be reallocated.
|
# the stack can be reallocated.
|
||||||
# -DHARDMEMTESTS forces an emergency collection at every single allocation.
|
# -DHARDMEMTESTS forces a full collection at all points where the collector
|
||||||
|
# can run.
|
||||||
|
# -DEMERGENCYGCTESTS forces an emergency collection at every single allocation.
|
||||||
# -DEXTERNMEMCHECK removes internal consistency checking of blocks being
|
# -DEXTERNMEMCHECK removes internal consistency checking of blocks being
|
||||||
# deallocated (useful when an external tool like valgrind does the check).
|
# deallocated (useful when an external tool like valgrind does the check).
|
||||||
# -DMAXINDEXRK=k limits range of constants in RK instruction operands.
|
# -DMAXINDEXRK=k limits range of constants in RK instruction operands.
|
||||||
|
|
Loading…
Reference in New Issue