aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-11-18 12:55:11 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-11-18 12:55:11 -0200
commit366e4af3c909056b383ffab6c45968d7f40d9db7 (patch)
treec712c45a47e9cd09f2b39cc67a49735e7320b47a /lgc.h
parent53c7f861944c5189448b1e5ddafa6a23ee6936e2 (diff)
downloadlua-366e4af3c909056b383ffab6c45968d7f40d9db7.tar.gz
lua-366e4af3c909056b383ffab6c45968d7f40d9db7.tar.bz2
lua-366e4af3c909056b383ffab6c45968d7f40d9db7.zip
towards incremental GC
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lgc.h b/lgc.h
index 29adec24..1bf6cbf5 100644
--- a/lgc.h
+++ b/lgc.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.h,v 1.21 2003/07/29 19:25:37 roberto Exp roberto $ 2** $Id: lgc.h,v 1.22 2003/11/17 19:50:05 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*/
@@ -23,15 +23,15 @@
23 23
24/* 24/*
25** Layout for bit use in `marked' field: 25** Layout for bit use in `marked' field:
26** bit 0 - object is white (not used yet) 26** bit 0 - object is gray
27** bit 1 - object is black 27** bit 1 - object is black
28** bit 2 - For userdata: is finalized; 28** bit 2 - For userdata: is finalized;
29 for tables: has weak keys 29 for tables: has weak keys
30** bit 3 - for tables: has weak values 30** bit 3 - for tables: has weak values
31** bit 4 - for strings: is fixed (should not be collected) 31** bit 4 - object is fixed (should not be collected)
32*/ 32*/
33 33
34#define WHITEBIT 0 34#define GRAYBIT 0
35#define BLACKBIT 1 35#define BLACKBIT 1
36#define FINALIZEDBIT 2 36#define FINALIZEDBIT 2
37#define KEYWEAKBIT 2 37#define KEYWEAKBIT 2