summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-08 04:19:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-08 04:19:20 +0000
commit6aa73e6caba9d1e5675fd5b344ca61478fcbfc57 (patch)
treea693b805f81c5a1f04c50f5890e58142fdada453 /vm.c
parent5abd77d9259a25983eebb3c92c204de806ad19fa (diff)
* vm.c (rb_thread_mark): mark stat_insn_usage only when ptr is not
null. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 4be4371630..e3ad6260c1 100644
--- a/vm.c
+++ b/vm.c
@@ -1637,6 +1637,7 @@ rb_thread_mark(void *ptr)
RUBY_MARK_UNLESS_NULL(th->top_wrapper);
RUBY_MARK_UNLESS_NULL(th->fiber);
RUBY_MARK_UNLESS_NULL(th->root_fiber);
+ RUBY_MARK_UNLESS_NULL(th->stat_insn_usage);
rb_mark_tbl(th->local_storage);
@@ -1650,7 +1651,6 @@ rb_thread_mark(void *ptr)
mark_event_hooks(th->event_hooks);
}
- RUBY_MARK_UNLESS_NULL(th->stat_insn_usage);
RUBY_MARK_LEAVE("thread");
}