[macruby-changes] [1915] MacRuby/branches/experimental/vm.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Sat Jun 20 19:05:33 PDT 2009
Revision: 1915
http://trac.macosforge.org/projects/ruby/changeset/1915
Author: vincent.isambart at gmail.com
Date: 2009-06-20 19:05:32 -0700 (Sat, 20 Jun 2009)
Log Message:
-----------
removed 2 useless WBs and added one I forgot
Modified Paths:
--------------
MacRuby/branches/experimental/vm.cpp
Modified: MacRuby/branches/experimental/vm.cpp
===================================================================
--- MacRuby/branches/experimental/vm.cpp 2009-06-21 01:45:04 UTC (rev 1914)
+++ MacRuby/branches/experimental/vm.cpp 2009-06-21 02:05:32 UTC (rev 1915)
@@ -2767,6 +2767,7 @@
memcpy(new_b, src_b, block_size);
GC_WB(&new_b->parent_block, src_b->parent_block);
+ GC_WB(&new_b->self, src_b->self);
new_b->flags = src_b->flags & ~VM_BLOCK_ACTIVE;
rb_vm_local_t *src_l = src_b->locals;
@@ -2774,7 +2775,7 @@
while (src_l != NULL) {
GC_WB(new_l, xmalloc(sizeof(rb_vm_local_t)));
(*new_l)->name = src_l->name;
- GC_WB(&(*new_l)->value, src_l->value);
+ (*new_l)->value = src_l->value;
new_l = &(*new_l)->next;
src_l = src_l->next;
@@ -2864,7 +2865,7 @@
for (int i = 0; i < lvars_size; ++i) {
assert(l != NULL);
l->name = va_arg(ar, ID);
- GC_WB(&l->value, va_arg(ar, VALUE *));
+ l->value = va_arg(ar, VALUE *);
l = l->next;
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090620/ed8c068c/attachment.html>
More information about the macruby-changes
mailing list