when preparing a block, make sure to write barrier the reference to self
--- 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);