diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-08-10 16:17:23 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-08-10 16:17:23 -0300 |
| commit | 26ae992129d5566ee973c0ff78fd709cd5d91271 (patch) | |
| tree | 81082d5ee1abaf94175d7cc66ae2331853ce24ab /lapi.c | |
| parent | f87057690b3afa7812d0ef5251ce103902a37c96 (diff) | |
| download | lua-26ae992129d5566ee973c0ff78fd709cd5d91271.tar.gz lua-26ae992129d5566ee973c0ff78fd709cd5d91271.tar.bz2 lua-26ae992129d5566ee973c0ff78fd709cd5d91271.zip | |
less conservative write barrier for tables
Diffstat (limited to 'lapi.c')
| -rw-r--r-- | lapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lapi.c,v 2.13 2004/06/30 14:15:23 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.14 2004/07/09 14:20:22 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 | */ |
| @@ -613,7 +613,7 @@ LUA_API void lua_rawset (lua_State *L, int idx) { | |||
| 613 | t = luaA_index(L, idx); | 613 | t = luaA_index(L, idx); |
| 614 | api_check(L, ttistable(t)); | 614 | api_check(L, ttistable(t)); |
| 615 | setobj2t(L, luaH_set(L, hvalue(t), L->top-2), L->top-1); | 615 | setobj2t(L, luaH_set(L, hvalue(t), L->top-2), L->top-1); |
| 616 | luaC_barrier(L, hvalue(t), L->top-1); | 616 | luaC_barriert(L, hvalue(t), L->top-1); |
| 617 | L->top -= 2; | 617 | L->top -= 2; |
| 618 | lua_unlock(L); | 618 | lua_unlock(L); |
| 619 | } | 619 | } |
| @@ -626,7 +626,7 @@ LUA_API void lua_rawseti (lua_State *L, int idx, int n) { | |||
| 626 | o = luaA_index(L, idx); | 626 | o = luaA_index(L, idx); |
| 627 | api_check(L, ttistable(o)); | 627 | api_check(L, ttistable(o)); |
| 628 | setobj2t(L, luaH_setnum(L, hvalue(o), n), L->top-1); | 628 | setobj2t(L, luaH_setnum(L, hvalue(o), n), L->top-1); |
| 629 | luaC_barrier(L, hvalue(o), L->top-1); | 629 | luaC_barriert(L, hvalue(o), L->top-1); |
| 630 | L->top--; | 630 | L->top--; |
| 631 | lua_unlock(L); | 631 | lua_unlock(L); |
| 632 | } | 632 | } |
