aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lgc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lgc.c b/lgc.c
index 04eb0278..fc888d04 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 2.126 2012/05/22 17:50:39 roberto Exp roberto $ 2** $Id: lgc.c,v 2.127 2012/05/22 18:38:56 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -24,11 +24,8 @@
24 24
25 25
26 26
27/* how much to allocate before next GC step */
28#define GCSTEPSIZE (cast_int(256 * sizeof(void*)))
29
30/* cost of sweeping one element (half the size of a small object) */ 27/* cost of sweeping one element (half the size of a small object) */
31#define GCSWEEPCOST ((sizeof(TString) + 2) / 2) 28#define GCSWEEPCOST ((sizeof(TString) + 4) / 2)
32 29
33/* maximum number of elements to sweep in each single step */ 30/* maximum number of elements to sweep in each single step */
34#define GCSWEEPMAX (cast_int((GCSTEPSIZE / GCSWEEPCOST) / 4)) 31#define GCSWEEPMAX (cast_int((GCSTEPSIZE / GCSWEEPCOST) / 4))