* 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
This commit is contained in:
nobu 2008-05-08 04:19:20 +00:00
Родитель 5abd77d925
Коммит 6aa73e6cab
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Thu May 8 13:19:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm.c (rb_thread_mark): mark stat_insn_usage only when ptr is not
null.
Thu May 8 10:44:04 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* array.c (sort_reentered): reentered check may be called from

2
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");
}