aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-14 14:15:53 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-14 14:15:53 -0200
commit41fd639cab8e2835ad2860442c19eb78fbc777be (patch)
tree4ae644a4612561537169d070a90fdfd826024b26 /ltable.c
parenta845a46cc883a76cb5175c0755805ba44a37d909 (diff)
downloadlua-41fd639cab8e2835ad2860442c19eb78fbc777be.tar.gz
lua-41fd639cab8e2835ad2860442c19eb78fbc777be.tar.bz2
lua-41fd639cab8e2835ad2860442c19eb78fbc777be.zip
documentation for write barriers
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltable.c b/ltable.c
index 04b3db35..1250877a 100644
--- a/ltable.c
+++ b/ltable.c
@@ -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)))