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

ruby-changes:60125

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Thu, 20 Feb 2020 11:49:24 +0900 (JST)
Subject: [ruby-changes:60125] 8920e2040a (master): hide vm_ep_in_heap_p_

https://git.ruby-lang.org/ruby.git/commit/?id=8920e2040a

From 8920e2040a8980fdceeb9b629b0ef79fac380960 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Sat, 15 Feb 2020 18:56:44 +0900
Subject: hide vm_ep_in_heap_p_

`make leaked-globals` points out that this function is leaked.  This has
not been detected in our CI because it is defined only when
VM_CHECK_MODE is nonzero.

Just make it static and everytihng goes well.

diff --git a/vm.c b/vm.c
index 8c7abb3..bf60f91 100644
--- a/vm.c
+++ b/vm.c
@@ -156,7 +156,7 @@ VM_EP_IN_HEAP_P(const rb_execution_context_t *ec, const VALUE *ep) https://github.com/ruby/ruby/blob/trunk/vm.c#L156
     }
 }
 
-int
+static int
 vm_ep_in_heap_p_(const rb_execution_context_t *ec, const VALUE *ep)
 {
     if (VM_EP_IN_HEAP_P(ec, ep)) {
-- 
cgit v0.10.2


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

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