[macruby-changes] [4341] MacRuby/trunk/dispatcher.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jul 9 14:19:34 PDT 2010
Revision: 4341
http://trac.macosforge.org/projects/ruby/changeset/4341
Author: lsansonetti at apple.com
Date: 2010-07-09 14:19:34 -0700 (Fri, 09 Jul 2010)
Log Message:
-----------
when preparing a block, make sure to write barrier the reference to self
Modified Paths:
--------------
MacRuby/trunk/dispatcher.cpp
Modified: MacRuby/trunk/dispatcher.cpp
===================================================================
--- MacRuby/trunk/dispatcher.cpp 2010-07-09 19:51:01 UTC (rev 4340)
+++ MacRuby/trunk/dispatcher.cpp 2010-07-09 21:19:34 UTC (rev 4341)
@@ -16,8 +16,6 @@
#include "dtrace.h"
#include "class.h"
-
-
#include <execinfo.h>
#include <dlfcn.h>
@@ -1344,7 +1342,7 @@
}
b->proc = Qnil;
- b->self = self;
+ GC_WB(&b->self, self);
b->klass = (VALUE)vm->get_current_class();
b->parent_var_uses = parent_var_uses;
GC_WB(&b->parent_block, parent_block);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100709/53156f4f/attachment.html>
More information about the macruby-changes
mailing list