no more local collection

This commit is contained in:
Roberto Ierusalimschy
2014-02-13 10:11:34 -02:00
parent 4a1ed6e6e5
commit 733c58595b
10 changed files with 69 additions and 263 deletions

9
lapi.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lapi.c,v 2.192 2013/12/30 20:47:58 roberto Exp roberto $
** $Id: lapi.c,v 2.193 2014/01/27 13:34:32 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -589,7 +589,6 @@ LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n) {
while (n--) {
setobj2n(L, &cl->c.upvalue[n], L->top + n);
/* does not need barrier because closure is white */
valnolocal(L->top + n); /* but needs 'local barrier' */
}
setclCvalue(L, L->top, cl);
}
@@ -864,7 +863,6 @@ LUA_API int lua_setmetatable (lua_State *L, int objindex) {
}
default: {
G(L)->mt[ttnov(obj)] = mt;
if (mt) nolocal(obj2gco(mt));
break;
}
}
@@ -1086,11 +1084,6 @@ LUA_API int lua_gc (lua_State *L, int what, int data) {
g->gcpause = data;
break;
}
case LUA_GCSETLOCALPAUSE: {
res = g->gclocalpause;
g->gclocalpause = data;
break;
}
case LUA_GCSETSTEPMUL: {
res = g->gcstepmul;
g->gcstepmul = data;