summaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-03-25 10:06:36 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-03-25 10:06:36 -0300
commit3aa95981779aa8144da11f328a25bf79bd141c41 (patch)
tree7397217a9d8e89c7ed9285dc69639442a8a5f019 /lgc.h
parent64d39ed1b6c1cb749a5815002509572020424bf3 (diff)
downloadlua-3aa95981779aa8144da11f328a25bf79bd141c41.tar.gz
lua-3aa95981779aa8144da11f328a25bf79bd141c41.tar.bz2
lua-3aa95981779aa8144da11f328a25bf79bd141c41.zip
'mainthread' is not inserted in the 'allgc' list anymore, but swept
separately.
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/lgc.h b/lgc.h
index c2948966..38564849 100644
--- a/lgc.h
+++ b/lgc.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.h,v 2.28 2010/03/24 13:07:01 roberto Exp roberto $ 2** $Id: lgc.h,v 2.29 2010/03/24 15:51:10 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*/
@@ -48,8 +48,7 @@
48** bit 3 - for userdata: has been finalized 48** bit 3 - for userdata: has been finalized
49** bit 4 - for userdata: it's in 'udgc' list or in 'tobefnz' 49** bit 4 - for userdata: it's in 'udgc' list or in 'tobefnz'
50** bit 5 - object is fixed (should not be collected) 50** bit 5 - object is fixed (should not be collected)
51** bit 6 - object is "super" fixed (only the main thread) 51** bit 6 - object is old (only in generational mode)
52** bit 7 - object is old (only in generational mode)
53*/ 52*/
54#define WHITE0BIT 0 53#define WHITE0BIT 0
55#define WHITE1BIT 1 54#define WHITE1BIT 1
@@ -57,8 +56,7 @@
57#define FINALIZEDBIT 3 56#define FINALIZEDBIT 3
58#define SEPARATED 4 57#define SEPARATED 4
59#define FIXEDBIT 5 58#define FIXEDBIT 5
60#define SFIXEDBIT 6 59#define OLDBIT 6
61#define OLDBIT 7
62 60
63#define WHITEBITS bit2mask(WHITE0BIT, WHITE1BIT) 61#define WHITEBITS bit2mask(WHITE0BIT, WHITE1BIT)
64 62