aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-06-18 14:57:20 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-06-18 14:57:20 -0300
commit15ce8d09040c07e5c738f9ffbb5a71a913b4be65 (patch)
treecd84fe6b953cdee85801ec14e4eca15119500ca2 /lparser.c
parentb43300c14f562bcdc1050f2c05e52fac3f6c99b7 (diff)
downloadlua-15ce8d09040c07e5c738f9ffbb5a71a913b4be65.tar.gz
lua-15ce8d09040c07e5c738f9ffbb5a71a913b4be65.tar.bz2
lua-15ce8d09040c07e5c738f9ffbb5a71a913b4be65.zip
in generational mode, an emergency collection can turn any object black
during any memory allocation.
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lparser.c b/lparser.c
index e67d70ea..3c68d1c2 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 2.179 2018/03/07 15:55:38 roberto Exp roberto $ 2** $Id: lparser.c,v 2.180 2018/04/04 14:23:41 roberto Exp roberto $
3** Lua Parser 3** Lua Parser
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -1709,7 +1709,7 @@ LClosure *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff,
1709 luaD_inctop(L); 1709 luaD_inctop(L);
1710 funcstate.f = cl->p = luaF_newproto(L); 1710 funcstate.f = cl->p = luaF_newproto(L);
1711 funcstate.f->source = luaS_new(L, name); /* create and anchor TString */ 1711 funcstate.f->source = luaS_new(L, name); /* create and anchor TString */
1712 lua_assert(iswhite(funcstate.f)); /* do not need barrier here */ 1712 luaC_objbarrier(L, funcstate.f, funcstate.f->source);
1713 lexstate.buff = buff; 1713 lexstate.buff = buff;
1714 lexstate.dyd = dyd; 1714 lexstate.dyd = dyd;
1715 dyd->actvar.n = dyd->gt.n = dyd->label.n = 0; 1715 dyd->actvar.n = dyd->gt.n = dyd->label.n = 0;