[前][次][番号順一覧][スレッド一覧]

ruby-changes:58209

From: Lourens <ko1@a...>
Date: Fri, 11 Oct 2019 11:16:07 +0900 (JST)
Subject: [ruby-changes:58209] 0ca4f74967 (master): Right size the numtable in insn_make_insn_table to VM_INSTRUCTION_SIZE

https://git.ruby-lang.org/ruby.git/commit/?id=0ca4f74967

From 0ca4f74967bb5a439b1f3d322ae7729265b917a4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lourens=20Naud=C3=A9?= <lourens@b...>
Date: Wed, 11 Sep 2019 00:18:41 +0100
Subject: Right size the numtable in insn_make_insn_table to
 VM_INSTRUCTION_SIZE


diff --git a/compile.c b/compile.c
index df7f467..53d88ee 100644
--- a/compile.c
+++ b/compile.c
@@ -8647,7 +8647,7 @@ insn_make_insn_table(void) https://github.com/ruby/ruby/blob/trunk/compile.c#L8647
 {
     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);
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]