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

ruby-changes:61481

From: Nobuyoshi <ko1@a...>
Date: Thu, 4 Jun 2020 17:12:23 +0900 (JST)
Subject: [ruby-changes:61481] 8b22fd27f1 (master): Moved vm_empty_cc to local in vm.c [Bug #16934]

https://git.ruby-lang.org/ruby.git/commit/?id=8b22fd27f1

From 8b22fd27f181ea1902bbb584b41488e307121587 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 4 Jun 2020 17:06:10 +0900
Subject: Moved vm_empty_cc to local in vm.c [Bug #16934]

As it is referenced only from compile.c, except for MJIT, simply
use the accessor function.

diff --git a/vm.c b/vm.c
index fb065f5..f2c45f3 100644
--- a/vm.c
+++ b/vm.c
@@ -386,7 +386,7 @@ rb_serial_t ruby_vm_global_method_state = 1; https://github.com/ruby/ruby/blob/trunk/vm.c#L386
 rb_serial_t ruby_vm_global_constant_state = 1;
 rb_serial_t ruby_vm_class_serial = 1;
 
-const struct rb_callcache *vm_empty_cc;
+static const struct rb_callcache *vm_empty_cc;
 
 static void thread_free(void *ptr);
 
-- 
cgit v0.10.2


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

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