[macruby-changes] [694] MacRuby/trunk/parse.y

source_changes at macosforge.org source_changes at macosforge.org
Fri Oct 31 18:57:15 PDT 2008


Revision: 694
          http://trac.macosforge.org/projects/ruby/changeset/694
Author:   lsansonetti at apple.com
Date:     2008-10-31 18:57:15 -0700 (Fri, 31 Oct 2008)
Log Message:
-----------
more wb

Modified Paths:
--------------
    MacRuby/trunk/parse.y

Modified: MacRuby/trunk/parse.y
===================================================================
--- MacRuby/trunk/parse.y	2008-11-01 00:58:45 UTC (rev 693)
+++ MacRuby/trunk/parse.y	2008-11-01 01:57:15 UTC (rev 694)
@@ -144,7 +144,7 @@
     tbl->pos = 0;
     tbl->capa = 8;
     GC_WB(&tbl->tbl, ALLOC_N(ID, tbl->capa));
-    tbl->prev = prev;
+    GC_WB(&tbl->prev, prev);
     if (VTBL_DEBUG) printf("vtable_alloc: %p\n", tbl);
     return tbl;
 }
@@ -8627,7 +8627,7 @@
     struct local_vars *local;
 
     local = ALLOC(struct local_vars);
-    local->prev = lvtbl;
+    GC_WB(&local->prev, lvtbl);
     GC_WB(&local->args, vtable_alloc(0));
     GC_WB(&local->vars, vtable_alloc(inherit_dvars ? DVARS_INHERIT : DVARS_TOPSCOPE));
     GC_WB(&lvtbl, local);
@@ -8793,10 +8793,10 @@
     struct vtable *tmp;
 
     tmp = lvtbl->args;
-    lvtbl->args = lvtbl->args->prev;
+    GC_WB(&lvtbl->args, lvtbl->args->prev);
     vtable_free(tmp);
     tmp = lvtbl->vars;
-    lvtbl->vars = lvtbl->vars->prev;
+    GC_WB(&lvtbl->vars, lvtbl->vars->prev);
     vtable_free(tmp);
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20081031/301b5e2c/attachment-0001.html>


More information about the macruby-changes mailing list