From 41fd639cab8e2835ad2860442c19eb78fbc777be Mon Sep 17 00:00:00 2001
From: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Thu, 14 Nov 2002 14:15:53 -0200
Subject: documentation for write barriers

---
 ltable.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'ltable.c')

diff --git a/ltable.c b/ltable.c
index 04b3db35..1250877a 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
 /*
-** $Id: ltable.c,v 1.121 2002/11/13 11:31:39 roberto Exp roberto $
+** $Id: ltable.c,v 1.122 2002/11/14 11:51:50 roberto Exp roberto $
 ** Lua tables (hash)
 ** See Copyright Notice in lua.h
 */
@@ -372,7 +372,7 @@ static TObject *newkey (lua_State *L, Table *t, const TObject *key) {
       mp = n;
     }
   }
-  setobj2t(key(mp), key);
+  setobj2t(key(mp), key);  /* write barrier */
   lua_assert(ttisnil(val(mp)));
   for (;;) {  /* correct `firstfree' */
     if (ttisnil(key(t->firstfree)))
-- 
cgit v1.2.3-55-g6feb