From df953388004483c47e4ec3cbd73058078318633b Mon Sep 17 00:00:00 2001 From: mame Date: Tue, 8 Jul 2008 12:45:50 +0000 Subject: * vm.c (rb_vm_mark): mark the last element of special_exceptions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ vm.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3b276c767..da8c6d761 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Jul 8 21:45:22 2008 Yusuke Endoh + + * vm.c (rb_vm_mark): mark the last element of special_exceptions. + Tue Jul 8 19:55:40 2008 Masaki Suketa * ext/win32ole/win32ole.c (find_default_source): try to diff --git a/vm.c b/vm.c index 4ffc8c881..f7aec0623 100644 --- a/vm.c +++ b/vm.c @@ -1396,7 +1396,7 @@ rb_vm_mark(void *ptr) RUBY_MARK_UNLESS_NULL(vm->loaded_features); RUBY_MARK_UNLESS_NULL(vm->top_self); RUBY_MARK_UNLESS_NULL(vm->coverages); - rb_gc_mark_locations(vm->special_exceptions, vm->special_exceptions + ruby_special_error_count - 1); + rb_gc_mark_locations(vm->special_exceptions, vm->special_exceptions + ruby_special_error_count); if (vm->loading_table) { rb_mark_tbl(vm->loading_table); -- cgit