lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 15ce8d09040c07e5c738f9ffbb5a71a913b4be65
parent b43300c14f562bcdc1050f2c05e52fac3f6c99b7
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Mon, 18 Jun 2018 14:56:53 -0300

in generational mode, an emergency collection can turn any object black
during any memory allocation.

Diffstat:
Mlparser.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lparser.c b/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 2.179 2018/03/07 15:55:38 roberto Exp roberto $ +** $Id: lparser.c,v 2.180 2018/04/04 14:23:41 roberto Exp roberto $ ** Lua Parser ** See Copyright Notice in lua.h */ @@ -1709,7 +1709,7 @@ LClosure *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff, luaD_inctop(L); funcstate.f = cl->p = luaF_newproto(L); funcstate.f->source = luaS_new(L, name); /* create and anchor TString */ - lua_assert(iswhite(funcstate.f)); /* do not need barrier here */ + luaC_objbarrier(L, funcstate.f, funcstate.f->source); lexstate.buff = buff; lexstate.dyd = dyd; dyd->actvar.n = dyd->gt.n = dyd->label.n = 0;