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

ruby-changes:72404

From: Nobuyoshi <ko1@a...>
Date: Sun, 3 Jul 2022 00:07:27 +0900 (JST)
Subject: [ruby-changes:72404] 62084e1930 (master): Fix leaked global symbols for debug counter

https://git.ruby-lang.org/ruby.git/commit/?id=62084e1930

From 62084e19305c7047b5b979d6f7f33eab1f0f267d Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 2 Jul 2022 23:56:11 +0900
Subject: Fix leaked global symbols for debug counter

---
 debug_counter.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debug_counter.c b/debug_counter.c
index cc522283a1..1569b0e9fb 100644
--- a/debug_counter.c
+++ b/debug_counter.c
@@ -30,7 +30,7 @@ size_t rb_debug_counter[numberof(debug_counter_names)]; https://github.com/ruby/ruby/blob/trunk/debug_counter.c#L30
 void rb_debug_counter_add_atomic(enum rb_debug_counter_type type, int add);
 MJIT_SYMBOL_EXPORT_END
 
-rb_nativethread_lock_t debug_counter_lock;
+static rb_nativethread_lock_t debug_counter_lock;
 
 __attribute__((constructor))
 static void
@@ -49,7 +49,7 @@ rb_debug_counter_add_atomic(enum rb_debug_counter_type type, int add) https://github.com/ruby/ruby/blob/trunk/debug_counter.c#L49
     rb_nativethread_lock_unlock(&debug_counter_lock);
 }
 
-int debug_counter_disable_show_at_exit = 0;
+static int debug_counter_disable_show_at_exit = 0;
 
 // note that this operation is not atomic.
 void
-- 
cgit v1.2.1


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

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