threads are kept in a separated GC list, linked after the main thread

This commit is contained in:
Roberto Ierusalimschy
2013-09-11 11:09:55 -03:00
parent 7061fe1d56
commit dd373a8f66
5 changed files with 47 additions and 47 deletions

9
lgc.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: lgc.h,v 2.72 2013/09/11 12:26:14 roberto Exp roberto $
** $Id: lgc.h,v 2.73 2013/09/11 12:47:48 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
@@ -43,12 +43,13 @@
#define GCSsweepfin 4
#define GCSsweepall 5
#define GCSsweeptobefnz 6
#define GCSsweepmainth 7
#define GCSpause 8
#define GCSsweepthreads 7
#define GCSsweepend 8
#define GCSpause 9
#define issweepphase(g) \
(GCSsweeplocal <= (g)->gcstate && (g)->gcstate <= GCSsweepmainth)
(GCSsweeplocal <= (g)->gcstate && (g)->gcstate <= GCSsweepend)
/*