diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-12-20 16:17:46 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-12-20 16:17:46 -0200 |
commit | 737f119187aca3c8f6743ec6e3cfc04e83723180 (patch) | |
tree | 4e1bfb4b2bef35dd2acfe2915ab51481cd9ebc16 /lstate.h | |
parent | 8980c630bf40e05dad71ded377e3d0f0a17b076c (diff) | |
download | lua-737f119187aca3c8f6743ec6e3cfc04e83723180.tar.gz lua-737f119187aca3c8f6743ec6e3cfc04e83723180.tar.bz2 lua-737f119187aca3c8f6743ec6e3cfc04e83723180.zip |
better control for GC running or stopped
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.68 2010/10/29 17:52:46 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.69 2010/11/26 14:32:31 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -123,6 +123,7 @@ typedef struct global_State { | |||
123 | lu_byte currentwhite; | 123 | lu_byte currentwhite; |
124 | lu_byte gcstate; /* state of garbage collector */ | 124 | lu_byte gcstate; /* state of garbage collector */ |
125 | lu_byte gckind; /* kind of GC running */ | 125 | lu_byte gckind; /* kind of GC running */ |
126 | lu_byte gcrunning; /* true if GC is running */ | ||
126 | int sweepstrgc; /* position of sweep in `strt' */ | 127 | int sweepstrgc; /* position of sweep in `strt' */ |
127 | GCObject *allgc; /* list of all collectable objects */ | 128 | GCObject *allgc; /* list of all collectable objects */ |
128 | GCObject *finobj; /* list of collectable objects with finalizers */ | 129 | GCObject *finobj; /* list of collectable objects with finalizers */ |