From 50955e27f592441a223c6267956e470f98eeb3c0 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 23 Aug 2013 10:34:54 -0300 Subject: C functions and strings now go to the local list; first version of the local collector --- lstring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstring.c') diff --git a/lstring.c b/lstring.c index e53c6375..6d1ce978 100644 --- a/lstring.c +++ b/lstring.c @@ -1,5 +1,5 @@ /* -** $Id: lstring.c,v 2.29 2013/08/21 19:21:16 roberto Exp roberto $ +** $Id: lstring.c,v 2.30 2013/08/22 15:21:48 roberto Exp roberto $ ** String table (keeps all strings handled by Lua) ** See Copyright Notice in lua.h */ @@ -106,7 +106,7 @@ static TString *createstrobj (lua_State *L, const char *str, size_t l, TString *ts; size_t totalsize; /* total size of TString object */ totalsize = sizeof(TString) + ((l + 1) * sizeof(char)); - ts = &luaC_newobj(L, tag, totalsize, NULL, 0)->ts; + ts = &luaC_newobj(L, tag, totalsize, &G(L)->localgc, 0)->ts; ts->tsv.len = l; ts->tsv.hash = h; ts->tsv.extra = 0; -- cgit v1.2.3-55-g6feb