[macruby-changes] [658] MacRuby/trunk

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 8 18:24:09 PDT 2008


Revision: 658
          http://trac.macosforge.org/projects/ruby/changeset/658
Author:   lsansonetti at apple.com
Date:     2008-10-08 18:24:08 -0700 (Wed, 08 Oct 2008)
Log Message:
-----------
more missing barriers

Modified Paths:
--------------
    MacRuby/trunk/insns.def
    MacRuby/trunk/iseq.c

Modified: MacRuby/trunk/insns.def
===================================================================
--- MacRuby/trunk/insns.def	2008-10-08 20:37:08 UTC (rev 657)
+++ MacRuby/trunk/insns.def	2008-10-09 01:24:08 UTC (rev 658)
@@ -1320,7 +1320,7 @@
 {
     IC ic = GET_CONST_INLINE_CACHE(dst);
 
-    ic->ic_value = val;
+    GC_WB(&ic->ic_value, val);
     ic->ic_vmstat = GET_VM_STATE_VERSION();
 }
 

Modified: MacRuby/trunk/iseq.c
===================================================================
--- MacRuby/trunk/iseq.c	2008-10-08 20:37:08 UTC (rev 657)
+++ MacRuby/trunk/iseq.c	2008-10-09 01:24:08 UTC (rev 658)
@@ -113,18 +113,18 @@
     /* set class nest stack */
     if (type == ISEQ_TYPE_TOP) {
 	/* toplevel is private */
-	iseq->cref_stack = NEW_BLOCK(th->top_wrapper ? th->top_wrapper : rb_cObject);
+	GC_WB(&iseq->cref_stack, NEW_BLOCK(th->top_wrapper ? th->top_wrapper : rb_cObject));
 	iseq->cref_stack->nd_file = 0;
 	iseq->cref_stack->nd_visi = NOEX_PRIVATE;
     }
     else if (type == ISEQ_TYPE_METHOD || type == ISEQ_TYPE_CLASS) {
-	iseq->cref_stack = NEW_BLOCK(0); /* place holder */
+	GC_WB(&iseq->cref_stack, NEW_BLOCK(0)); /* place holder */
 	iseq->cref_stack->nd_file = 0;
     }
     else if (RTEST(parent)) {
 	rb_iseq_t *piseq;
 	GetISeqPtr(parent, piseq);
-	iseq->cref_stack = piseq->cref_stack;
+	GC_WB(&iseq->cref_stack, piseq->cref_stack);
     }
 
     if (type == ISEQ_TYPE_TOP ||
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20081008/ebf7cfa6/attachment.html 


More information about the macruby-changes mailing list