summaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-03-24 12:51:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-03-24 12:51:10 -0300
commit64d39ed1b6c1cb749a5815002509572020424bf3 (patch)
tree0761935f08ff979d17a9f5b31c45097f5213c6ff /lgc.h
parent4433dbb5f5ac0bb6118bc49ddf061f194c070814 (diff)
downloadlua-64d39ed1b6c1cb749a5815002509572020424bf3.tar.gz
lua-64d39ed1b6c1cb749a5815002509572020424bf3.tar.bz2
lua-64d39ed1b6c1cb749a5815002509572020424bf3.zip
generational mode no longer sweep old objects
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lgc.h b/lgc.h
index c01a8cc8..c2948966 100644
--- a/lgc.h
+++ b/lgc.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.h,v 2.27 2009/12/16 16:42:58 roberto Exp roberto $ 2** $Id: lgc.h,v 2.28 2010/03/24 13:07:01 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*/
@@ -49,6 +49,7 @@
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 "super" fixed (only the main thread)
52** bit 7 - object is old (only in generational mode)
52*/ 53*/
53#define WHITE0BIT 0 54#define WHITE0BIT 0
54#define WHITE1BIT 1 55#define WHITE1BIT 1
@@ -57,6 +58,7 @@
57#define SEPARATED 4 58#define SEPARATED 4
58#define FIXEDBIT 5 59#define FIXEDBIT 5
59#define SFIXEDBIT 6 60#define SFIXEDBIT 6
61#define OLDBIT 7
60 62
61#define WHITEBITS bit2mask(WHITE0BIT, WHITE1BIT) 63#define WHITEBITS bit2mask(WHITE0BIT, WHITE1BIT)
62 64