summaryrefslogtreecommitdiffstats
path: root/lua/lgc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lgc.h')
-rw-r--r--lua/lgc.h10
1 files changed, 9 insertions, 1 deletions
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
*/