Right size the vm_default_params hash
This commit is contained in:
parent
0e68913f81
commit
0095362918
Notes:
git
2019-10-29 11:32:12 +09:00
2
vm.c
2
vm.c
@ -2373,7 +2373,7 @@ static VALUE
|
|||||||
vm_default_params(void)
|
vm_default_params(void)
|
||||||
{
|
{
|
||||||
rb_vm_t *vm = GET_VM();
|
rb_vm_t *vm = GET_VM();
|
||||||
VALUE result = rb_hash_new();
|
VALUE result = rb_hash_new_with_size(4);
|
||||||
#define SET(name) rb_hash_aset(result, ID2SYM(rb_intern(#name)), SIZET2NUM(vm->default_params.name));
|
#define SET(name) rb_hash_aset(result, ID2SYM(rb_intern(#name)), SIZET2NUM(vm->default_params.name));
|
||||||
SET(thread_vm_stack_size);
|
SET(thread_vm_stack_size);
|
||||||
SET(thread_machine_stack_size);
|
SET(thread_machine_stack_size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user