summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-06 04:42:35 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-06 04:42:35 (GMT)
commita617afc643e17cea5c1960a60adcd5ffb25fdfe2 (patch)
tree8f3b794d214aa88c426ebd75e17cbef791788de5 /vm.c
parent92089610b617fc07084d03f24a3e58a40639e5ce (diff)
* gc.c (rb_gc_register_mark_object): change data structure.
From single array, to array of arrays. Each array only has 1024 entries. * vm.c (Init_vm_objects): change default capa from 1 to 128. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46714 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 32beb34..0fd5e3f 100644
--- a/vm.c
+++ b/vm.c
@@ -2793,7 +2793,7 @@ Init_vm_objects(void)
vm->defined_module_hash = rb_hash_new();
/* initialize mark object array, hash */
- vm->mark_object_ary = rb_ary_tmp_new(1);
+ vm->mark_object_ary = rb_ary_tmp_new(128);
}
/* top self */