1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Right size the numtable in insn_make_insn_table to VM_INSTRUCTION_SIZE

This commit is contained in:
Lourens Naudé 2019-09-11 00:18:41 +01:00 committed by 卜部昌平
parent 87958520f3
commit 0ca4f74967
Notes: git 2019-10-11 11:16:09 +09:00

View file

@ -8647,7 +8647,7 @@ insn_make_insn_table(void)
{
struct st_table *table;
int i;
table = st_init_numtable();
table = st_init_numtable_with_size(VM_INSTRUCTION_SIZE);
for (i=0; i<VM_INSTRUCTION_SIZE; i++) {
st_insert(table, ID2SYM(rb_intern(insn_name(i))), i);