diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-02-13 10:11:34 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-02-13 10:11:34 -0200 |
| commit | 733c58595bb57541e38275103fade1330aeb839d (patch) | |
| tree | 313583474068cdde188d72a876c7883d47b9e863 /lapi.c | |
| parent | 4a1ed6e6e53f8b208fd21d6ac8b0a34331c43ede (diff) | |
| download | lua-733c58595bb57541e38275103fade1330aeb839d.tar.gz lua-733c58595bb57541e38275103fade1330aeb839d.tar.bz2 lua-733c58595bb57541e38275103fade1330aeb839d.zip | |
no more local collection
Diffstat (limited to 'lapi.c')
| -rw-r--r-- | lapi.c | 9 |
1 files changed, 1 insertions, 8 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lapi.c,v 2.192 2013/12/30 20:47:58 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.193 2014/01/27 13:34:32 roberto Exp roberto $ |
| 3 | ** Lua API | 3 | ** Lua API |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -589,7 +589,6 @@ LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n) { | |||
| 589 | while (n--) { | 589 | while (n--) { |
| 590 | setobj2n(L, &cl->c.upvalue[n], L->top + n); | 590 | setobj2n(L, &cl->c.upvalue[n], L->top + n); |
| 591 | /* does not need barrier because closure is white */ | 591 | /* does not need barrier because closure is white */ |
| 592 | valnolocal(L->top + n); /* but needs 'local barrier' */ | ||
| 593 | } | 592 | } |
| 594 | setclCvalue(L, L->top, cl); | 593 | setclCvalue(L, L->top, cl); |
| 595 | } | 594 | } |
| @@ -864,7 +863,6 @@ LUA_API int lua_setmetatable (lua_State *L, int objindex) { | |||
| 864 | } | 863 | } |
| 865 | default: { | 864 | default: { |
| 866 | G(L)->mt[ttnov(obj)] = mt; | 865 | G(L)->mt[ttnov(obj)] = mt; |
| 867 | if (mt) nolocal(obj2gco(mt)); | ||
| 868 | break; | 866 | break; |
| 869 | } | 867 | } |
| 870 | } | 868 | } |
| @@ -1086,11 +1084,6 @@ LUA_API int lua_gc (lua_State *L, int what, int data) { | |||
| 1086 | g->gcpause = data; | 1084 | g->gcpause = data; |
| 1087 | break; | 1085 | break; |
| 1088 | } | 1086 | } |
| 1089 | case LUA_GCSETLOCALPAUSE: { | ||
| 1090 | res = g->gclocalpause; | ||
| 1091 | g->gclocalpause = data; | ||
| 1092 | break; | ||
| 1093 | } | ||
| 1094 | case LUA_GCSETSTEPMUL: { | 1087 | case LUA_GCSETSTEPMUL: { |
| 1095 | res = g->gcstepmul; | 1088 | res = g->gcstepmul; |
| 1096 | g->gcstepmul = data; | 1089 | g->gcstepmul = data; |
