From f849885a4b49f2d766e6befc67475c05240023eb Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 13 Aug 2020 15:23:21 -0300 Subject: Small changes in macros that change GC colors - Macro 'gray2black' was renamed 'nw2black' (Non-White to black), as it was already being used on objects that could be already black. - Macros 'white2gray' and 'black2gray' were unified in 'set2gray'; no reason to have two macros when one will do and, again, 'black2gray' was already being used on objects that could be already gray. Moreover, macros 'maskcolors' and 'maskgcbits' were negated to have ones in the described bits, instead of zeros. (This naming seems more intuitive.) --- lfunc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lfunc.c') diff --git a/lfunc.c b/lfunc.c index f8c3c446..88d45328 100644 --- a/lfunc.c +++ b/lfunc.c @@ -235,7 +235,7 @@ int luaF_close (lua_State *L, StkId level, int status) { setobj(L, slot, uv->v); /* move value to upvalue slot */ uv->v = slot; /* now current value lives here */ if (!iswhite(uv)) { /* neither white nor dead? */ - gray2black(uv); /* closed upvalues cannot be gray */ + nw2black(uv); /* closed upvalues cannot be gray */ luaC_barrier(L, uv, slot); } } -- cgit v1.2.3-55-g6feb