summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog10
-rw-r--r--vm.c5
2 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cf440dcd8f..d2b04ded7e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+Mon Jul 26 13:01:25 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (rb_thread_mark): should mark iseq itself other than normal
+ iseq. [ruby-dev:41880]
+
+Mon Jul 26 09:51:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (rb_thread_mark): mark only self of normal iseqs, not
+ nodes. [ruby-dev:41874]
+
Sun Aug 1 10:23:48 2010 Yusuke Endoh <mame@tsg.ne.jp>
* lib/irb/init.rb (IRB.parse_opts): set VERBOSE to true when debug
diff --git a/vm.c b/vm.c
index 5809ba04ab..d222a46412 100644
--- a/vm.c
+++ b/vm.c
@@ -1646,8 +1646,11 @@ rb_thread_mark(void *ptr)
rb_gc_mark_locations(p, p + th->mark_stack_len);
while (cfp != limit_cfp) {
+ rb_iseq_t *iseq = cfp->iseq;
rb_gc_mark(cfp->proc);
- if (cfp->iseq) rb_gc_mark(cfp->iseq->self);
+ if (iseq) {
+ rb_gc_mark(RUBY_VM_NORMAL_ISEQ_P(iseq) ? iseq->self : (VALUE)iseq);
+ }
if (cfp->me) ((rb_method_entry_t *)cfp->me)->mark = 1;
cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(cfp);
}