aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-08-30 16:14:26 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-08-30 16:14:26 -0300
commit1bf4faec64aca03e1036235e72675f0617124140 (patch)
treedca4218f3085090a27c288ccd11aaf1bdb520905 /lgc.h
parent8ef9e8460e775793f760deb28d0c3d10dda31b49 (diff)
downloadlua-1bf4faec64aca03e1036235e72675f0617124140.tar.gz
lua-1bf4faec64aca03e1036235e72675f0617124140.tar.bz2
lua-1bf4faec64aca03e1036235e72675f0617124140.zip
new GC state to sweep 'localgc' list + small changes in sweep control
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/lgc.h b/lgc.h
index 978c7aca..db309360 100644
--- a/lgc.h
+++ b/lgc.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.h,v 2.68 2013/08/27 20:04:00 roberto Exp roberto $ 2** $Id: lgc.h,v 2.69 2013/08/29 13:49:57 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*/
@@ -38,13 +38,15 @@
38*/ 38*/
39#define GCSpropagate 0 39#define GCSpropagate 0
40#define GCSatomic 1 40#define GCSatomic 1
41#define GCSsweepudata 2 41#define GCSsweeplocal 2
42#define GCSsweep 3 42#define GCSsweepfin 3
43#define GCSpause 4 43#define GCSsweepall 4
44#define GCSsweepmainth 5
45#define GCSpause 6
44 46
45 47
46#define issweepphase(g) \ 48#define issweepphase(g) \
47 (GCSsweepudata <= (g)->gcstate && (g)->gcstate <= GCSsweep) 49 (GCSsweeplocal <= (g)->gcstate && (g)->gcstate <= GCSsweepmainth)
48 50
49 51
50/* 52/*