[macruby-changes] [450] MacRuby/branches/lrz_unstable/compile.c

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 18 13:31:02 PDT 2008


Revision: 450
          http://trac.macosforge.org/projects/ruby/changeset/450
Author:   lsansonetti at apple.com
Date:     2008-08-18 13:31:02 -0700 (Mon, 18 Aug 2008)
Log Message:
-----------
use malloc memory for the method cache

Modified Paths:
--------------
    MacRuby/branches/lrz_unstable/compile.c

Modified: MacRuby/branches/lrz_unstable/compile.c
===================================================================
--- MacRuby/branches/lrz_unstable/compile.c	2008-08-16 08:35:51 UTC (rev 449)
+++ MacRuby/branches/lrz_unstable/compile.c	2008-08-18 20:31:02 UTC (rev 450)
@@ -695,7 +695,7 @@
     operands[2] = block;
     operands[3] = flag;
 
-    mcache = (struct rb_method_cache *)xmalloc(sizeof(struct rb_method_cache));
+    mcache = (struct rb_method_cache *)malloc(sizeof(struct rb_method_cache));
     mcache->flags = RB_MCACHE_RCALL_FLAG;
     mcache->as.rcall.klass = 0;
     mcache->as.rcall.node = NULL;
@@ -729,7 +729,7 @@
 	    mcache->as.rcall.sel = sel_registerName(buf);
 	}
     }
-    GC_WB(&operands[4], mcache);
+    operands[4] = (VALUE)mcache;
     iobj = new_insn_core(iseq, line_no, BIN(send), 5, operands);
     return iobj;
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080818/726ee343/attachment.html 


More information about the macruby-changes mailing list