From 0095362918375fb694345133e33199b01911e594 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lourens=20Naud=C3=A9?= Date: Mon, 21 Oct 2019 23:49:54 +0100 Subject: [PATCH] Right size the vm_default_params hash --- vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm.c b/vm.c index e104688d71..9f024895c5 100644 --- a/vm.c +++ b/vm.c @@ -2373,7 +2373,7 @@ static VALUE vm_default_params(void) { 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)); SET(thread_vm_stack_size); SET(thread_machine_stack_size);