diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-09-11 11:47:08 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-09-11 11:47:08 -0300 |
commit | 4eeb1831bee8c424a60b5ca05667b5d1c1bb662e (patch) | |
tree | bba7a83b633eae54c67e5797c3559d7faa04f8e1 /lgc.h | |
parent | dd373a8f665e5e22ad3ad75401aa9fe3bbb2afc8 (diff) | |
download | lua-4eeb1831bee8c424a60b5ca05667b5d1c1bb662e.tar.gz lua-4eeb1831bee8c424a60b5ca05667b5d1c1bb662e.tar.bz2 lua-4eeb1831bee8c424a60b5ca05667b5d1c1bb662e.zip |
new names and better order for GC states (sweep first lists that
can have dead objects)
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.h,v 2.73 2013/09/11 12:47:48 roberto Exp roberto $ | 2 | ** $Id: lgc.h,v 2.74 2013/09/11 14:09:55 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,18 +38,18 @@ | |||
38 | */ | 38 | */ |
39 | #define GCSpropagate 0 | 39 | #define GCSpropagate 0 |
40 | #define GCSatomic 1 | 40 | #define GCSatomic 1 |
41 | #define GCSsweeplocal 2 | 41 | #define GCSswplocalgc 2 |
42 | #define GCSsweeplocfin 3 | 42 | #define GCSswpallgc 4 |
43 | #define GCSsweepfin 4 | 43 | #define GCSswpthreads 3 |
44 | #define GCSsweepall 5 | 44 | #define GCSswplocalfin 5 |
45 | #define GCSsweeptobefnz 6 | 45 | #define GCSswpfinobj 6 |
46 | #define GCSsweepthreads 7 | 46 | #define GCSswptobefnz 7 |
47 | #define GCSsweepend 8 | 47 | #define GCSswpend 8 |
48 | #define GCSpause 9 | 48 | #define GCSpause 9 |
49 | 49 | ||
50 | 50 | ||
51 | #define issweepphase(g) \ | 51 | #define issweepphase(g) \ |
52 | (GCSsweeplocal <= (g)->gcstate && (g)->gcstate <= GCSsweepend) | 52 | (GCSswplocalgc <= (g)->gcstate && (g)->gcstate <= GCSswpend) |
53 | 53 | ||
54 | 54 | ||
55 | /* | 55 | /* |