From de6fc75d630b393d8b577ba03353abe527523d0f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 17 Dec 2009 10:26:09 -0200 Subject: several configuration options that do not change often moved out of luaconf.h and into more internal files --- lstate.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index 07d5be25..1ea3e77f 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.65 2009/12/14 15:27:30 roberto Exp roberto $ +** $Id: lstate.c,v 2.66 2009/12/16 16:42:58 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -25,6 +25,15 @@ #include "ltm.h" +#if !defined(LUAI_GCPAUSE) +#define LUAI_GCPAUSE 162 /* 162% (wait memory to double before next GC) */ +#endif + +#if !defined(LUAI_GCMUL) +#define LUAI_GCMUL 200 /* GC runs 'twice the speed' of memory allocation */ +#endif + + /* ** thread state + extra space */ -- cgit v1.2.3-55-g6feb