aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lgc.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lgc.h b/lgc.h
index 282336c7..569aefae 100644
--- a/lgc.h
+++ b/lgc.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.h,v 2.55 2012/05/21 13:18:10 roberto Exp roberto $ 2** $Id: lgc.h,v 2.56 2012/05/23 15:43:14 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*/
@@ -55,9 +55,10 @@
55** phase may break the invariant, as objects turned white may point to 55** phase may break the invariant, as objects turned white may point to
56** still-black objects. The invariant is restored when sweep ends and 56** still-black objects. The invariant is restored when sweep ends and
57** all objects are white again. During a generational collection, the 57** all objects are white again. During a generational collection, the
58** invariant must be kept all times. 58** invariant must be kept all times. (The state in generational mode
59** is kept in 'propagate', so 'keepinvariant' is always true.)
59*/ 60*/
60#define keepinvariant(g) (isgenerational(g) || g->gcstate <= GCSatomic) 61#define keepinvariant(g) (g->gcstate <= GCSatomic)
61 62
62 63
63/* 64/*