From 78e6e89431e4ef9419a716f246f1f3cfaf7d9dfe Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Sun, 15 Jul 2012 01:06:01 +0200 Subject: Lua 5.2.1 --- lua/lgc.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lua/lgc.h') diff --git a/lua/lgc.h b/lua/lgc.h index aa5dfce..bdd5cce 100644 --- a/lua/lgc.h +++ b/lua/lgc.h @@ -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 */ -- cgit v1.2.1