LOCALBLACK changed to LOCALMARK and used also to control whether object

is in 'localgc' list + luaC_newobj by default puts object in 'localgc'
list
This commit is contained in:
Roberto Ierusalimschy
2013-08-27 17:04:00 -03:00
parent af35c7f398
commit 90972ff136
6 changed files with 24 additions and 20 deletions

4
lgc.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: lgc.h,v 2.66 2013/08/23 13:34:54 roberto Exp roberto $
** $Id: lgc.h,v 2.67 2013/08/27 18:53:35 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
@@ -77,7 +77,7 @@
#define BLACKBIT 2 /* object is black */
#define FINALIZEDBIT 3 /* object has been marked for finalization */
#define LOCALBIT 4 /* object is not local */
#define LOCALBLACK 5 /* object is 'locally black' */
#define LOCALMARK 5 /* object is 'locally marked' or out of local list */
/* bit 7 is currently used by tests (luaL_checkmemory) */
#define WHITEBITS bit2mask(WHITE0BIT, WHITE1BIT)