diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-09-11 11:09:55 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-09-11 11:09:55 -0300 |
| commit | dd373a8f665e5e22ad3ad75401aa9fe3bbb2afc8 (patch) | |
| tree | d475246f43edc6de6e1ebf491b274e9d9a5c1c24 /lgc.h | |
| parent | 7061fe1d56f40e9d22a226423079da808fb41f66 (diff) | |
| download | lua-dd373a8f665e5e22ad3ad75401aa9fe3bbb2afc8.tar.gz lua-dd373a8f665e5e22ad3ad75401aa9fe3bbb2afc8.tar.bz2 lua-dd373a8f665e5e22ad3ad75401aa9fe3bbb2afc8.zip | |
threads are kept in a separated GC list, linked after the main thread
Diffstat (limited to 'lgc.h')
| -rw-r--r-- | lgc.h | 9 |
1 files changed, 5 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lgc.h,v 2.72 2013/09/11 12:26:14 roberto Exp roberto $ | 2 | ** $Id: lgc.h,v 2.73 2013/09/11 12:47:48 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 | */ |
| @@ -43,12 +43,13 @@ | |||
| 43 | #define GCSsweepfin 4 | 43 | #define GCSsweepfin 4 |
| 44 | #define GCSsweepall 5 | 44 | #define GCSsweepall 5 |
| 45 | #define GCSsweeptobefnz 6 | 45 | #define GCSsweeptobefnz 6 |
| 46 | #define GCSsweepmainth 7 | 46 | #define GCSsweepthreads 7 |
| 47 | #define GCSpause 8 | 47 | #define GCSsweepend 8 |
| 48 | #define GCSpause 9 | ||
| 48 | 49 | ||
| 49 | 50 | ||
| 50 | #define issweepphase(g) \ | 51 | #define issweepphase(g) \ |
| 51 | (GCSsweeplocal <= (g)->gcstate && (g)->gcstate <= GCSsweepmainth) | 52 | (GCSsweeplocal <= (g)->gcstate && (g)->gcstate <= GCSsweepend) |
| 52 | 53 | ||
| 53 | 54 | ||
| 54 | /* | 55 | /* |
