diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-17 10:26:09 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-17 10:26:09 -0200 |
| commit | de6fc75d630b393d8b577ba03353abe527523d0f (patch) | |
| tree | 385cb83b63b2ec409cde308c776e7c4c2073ff84 /lstate.c | |
| parent | 2af0d3b4598060b1086884cfb879d39fa4e0c89a (diff) | |
| download | lua-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.c | 11 |
1 files changed, 10 insertions, 1 deletions
| @@ -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 | */ |
