diff options
author | Emil Renner Berthing <esmil@mailme.dk> | 2012-07-15 01:06:01 +0200 |
---|---|---|
committer | Emil Renner Berthing <esmil@mailme.dk> | 2012-07-23 17:36:24 +0200 |
commit | 78e6e89431e4ef9419a716f246f1f3cfaf7d9dfe (patch) | |
tree | d9e476dfee06bf8ba6dcf4499fb78ce1350728fe /lua/lgc.h | |
parent | 3a1c6f4e205c8c6d28abc641e568f2fa6362c654 (diff) | |
download | lem-78e6e89431e4ef9419a716f246f1f3cfaf7d9dfe.tar.gz lem-78e6e89431e4ef9419a716f246f1f3cfaf7d9dfe.tar.xz lem-78e6e89431e4ef9419a716f246f1f3cfaf7d9dfe.zip |
Lua 5.2.1
Diffstat (limited to 'lua/lgc.h')
-rw-r--r-- | lua/lgc.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lgc.h,v 2.52 2011/10/03 17:54:25 roberto Exp $ +** $Id: lgc.h,v 2.56 2012/05/23 15:43:14 roberto Exp $ ** Garbage Collector ** See Copyright Notice in lua.h */ @@ -25,6 +25,14 @@ */ + +/* how much to allocate before next GC step */ +#if !defined(GCSTEPSIZE) +/* ~100 small strings */ +#define GCSTEPSIZE (cast_int(100 * sizeof(TString))) +#endif + + /* ** Possible states of the Garbage Collector */ |