summaryrefslogtreecommitdiffstats
path: root/lua/lgc.h
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@mailme.dk>2012-07-15 01:06:01 +0200
committerEmil Renner Berthing <esmil@mailme.dk>2012-07-23 17:36:24 +0200
commit78e6e89431e4ef9419a716f246f1f3cfaf7d9dfe (patch)
treed9e476dfee06bf8ba6dcf4499fb78ce1350728fe /lua/lgc.h
parent3a1c6f4e205c8c6d28abc641e568f2fa6362c654 (diff)
downloadlem-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.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
*/