summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-08 12:45:50 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-08 12:45:50 +0000
commit92afa0522205ba0589d4c3d6e03837802a2c83fd (patch)
treee528c27a11c29eae0a0b3d1dfcc60f153a4783d0 /vm.c
parent6c32d10c0186a1aebe212f0f61c940204d7f1e73 (diff)
* vm.c (rb_vm_mark): mark the last element of special_exceptions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17957 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 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);