diff --git a/ChangeLog b/ChangeLog index 3b276c7679..da8c6d7613 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 4ffc8c8817..f7aec06234 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);