mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
'KGC_NORMAL' -> 'KGC_INC' + emergency GC signalled by flag (instead
of mode)
This commit is contained in:
parent
6a98aa0bb0
commit
69371c4b84
5 changed files with 21 additions and 21 deletions
4
ltests.c
4
ltests.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: ltests.c,v 2.213 2017/04/18 19:42:12 roberto Exp roberto $
|
||||
** $Id: ltests.c,v 2.214 2017/04/19 18:46:47 roberto Exp roberto $
|
||||
** Internal Module for Debugging of the Lua Implementation
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -199,7 +199,7 @@ static int testobjref1 (global_State *g, GCObject *f, GCObject *t) {
|
|||
if (isdead(g,t)) return 0;
|
||||
if (issweepphase(g))
|
||||
return 1; /* no invariants */
|
||||
else if (g->gckind == KGC_NORMAL)
|
||||
else if (g->gckind == KGC_INC)
|
||||
return !(isblack(f) && iswhite(t)); /* basic incremental invariant */
|
||||
else { /* generational mode */
|
||||
if ((getage(f) == G_OLD && isblack(f)) && !isold(t))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue