keep a single list of objects to be finalized (with local and non-local

objects), to ensure finalization order
This commit is contained in:
Roberto Ierusalimschy
2014-02-11 10:18:12 -02:00
parent 68df7c6279
commit ba3586cc90
5 changed files with 37 additions and 60 deletions

15
lgc.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: lgc.h,v 2.75 2013/09/11 14:47:08 roberto Exp roberto $
** $Id: lgc.h,v 2.76 2013/09/11 20:15:31 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
@@ -39,13 +39,12 @@
#define GCSpropagate 0
#define GCSatomic 1
#define GCSswplocalgc 2
#define GCSswpallgc 4
#define GCSswpthreads 3
#define GCSswplocalfin 5
#define GCSswpfinobj 6
#define GCSswptobefnz 7
#define GCSswpend 8
#define GCSpause 9
#define GCSswpallgc 3
#define GCSswpthreads 4
#define GCSswpfinobj 5
#define GCSswptobefnz 6
#define GCSswpend 7
#define GCSpause 8
#define issweepphase(g) \