aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-12-17 10:26:09 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-12-17 10:26:09 -0200
commitde6fc75d630b393d8b577ba03353abe527523d0f (patch)
tree385cb83b63b2ec409cde308c776e7c4c2073ff84 /lstate.c
parent2af0d3b4598060b1086884cfb879d39fa4e0c89a (diff)
downloadlua-de6fc75d630b393d8b577ba03353abe527523d0f.tar.gz
lua-de6fc75d630b393d8b577ba03353abe527523d0f.tar.bz2
lua-de6fc75d630b393d8b577ba03353abe527523d0f.zip
several configuration options that do not change often moved out of
luaconf.h and into more internal files
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/lstate.c b/lstate.c
index 07d5be25..1ea3e77f 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.65 2009/12/14 15:27:30 roberto Exp roberto $ 2** $Id: lstate.c,v 2.66 2009/12/16 16:42:58 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -25,6 +25,15 @@
25#include "ltm.h" 25#include "ltm.h"
26 26
27 27
28#if !defined(LUAI_GCPAUSE)
29#define LUAI_GCPAUSE 162 /* 162% (wait memory to double before next GC) */
30#endif
31
32#if !defined(LUAI_GCMUL)
33#define LUAI_GCMUL 200 /* GC runs 'twice the speed' of memory allocation */
34#endif
35
36
28/* 37/*
29** thread state + extra space 38** thread state + extra space
30*/ 39*/