[macruby-changes] [236] MacRuby/trunk/objc.m

source_changes at macosforge.org source_changes at macosforge.org
Wed May 28 18:24:53 PDT 2008


Revision: 236
          http://trac.macosforge.org/projects/ruby/changeset/236
Author:   lsansonetti at apple.com
Date:     2008-05-28 18:24:52 -0700 (Wed, 28 May 2008)

Log Message:
-----------
do not forget write barrier when caching values

Modified Paths:
--------------
    MacRuby/trunk/objc.m

Modified: MacRuby/trunk/objc.m
===================================================================
--- MacRuby/trunk/objc.m	2008-05-29 01:23:04 UTC (rev 235)
+++ MacRuby/trunk/objc.m	2008-05-29 01:24:52 UTC (rev 236)
@@ -1696,12 +1696,6 @@
 }
 
 static VALUE
-rb_bs_struct_get_field(bs_element_struct_t *bs_struct, VALUE recv,
-		       ID ivar_id)
-{
-}
-
-static VALUE
 rb_bs_struct_get(VALUE recv)
 {
     bs_element_boxed_t *bs_boxed = rb_klass_get_bs_boxed(CLASS_OF(recv));
@@ -1733,7 +1727,7 @@
 	    val = ((VALUE *)data)[i];
 	    if (val == 0) {
 		rb_objc_ocval_to_rbval(data + pos, bs_field->type, &val);
-	   	((VALUE *)data)[i] = val; 
+	   	GC_WB(&((VALUE *)data)[i], val); 
 	    }
 	    return val;
 	}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080528/7aafc323/attachment.htm 


More information about the macruby-changes mailing list