diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-14 14:15:53 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-14 14:15:53 -0200 |
| commit | 41fd639cab8e2835ad2860442c19eb78fbc777be (patch) | |
| tree | 4ae644a4612561537169d070a90fdfd826024b26 /ltable.c | |
| parent | a845a46cc883a76cb5175c0755805ba44a37d909 (diff) | |
| download | lua-41fd639cab8e2835ad2860442c19eb78fbc777be.tar.gz lua-41fd639cab8e2835ad2860442c19eb78fbc777be.tar.bz2 lua-41fd639cab8e2835ad2860442c19eb78fbc777be.zip | |
documentation for write barriers
Diffstat (limited to 'ltable.c')
| -rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltable.c,v 1.121 2002/11/13 11:31:39 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 1.122 2002/11/14 11:51:50 roberto Exp roberto $ |
| 3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -372,7 +372,7 @@ static TObject *newkey (lua_State *L, Table *t, const TObject *key) { | |||
| 372 | mp = n; | 372 | mp = n; |
| 373 | } | 373 | } |
| 374 | } | 374 | } |
| 375 | setobj2t(key(mp), key); | 375 | setobj2t(key(mp), key); /* write barrier */ |
| 376 | lua_assert(ttisnil(val(mp))); | 376 | lua_assert(ttisnil(val(mp))); |
| 377 | for (;;) { /* correct `firstfree' */ | 377 | for (;;) { /* correct `firstfree' */ |
| 378 | if (ttisnil(key(t->firstfree))) | 378 | if (ttisnil(key(t->firstfree))) |
