diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-07-02 23:56:11 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-07-03 00:05:53 +0900 |
commit | 62084e19305c7047b5b979d6f7f33eab1f0f267d (patch) | |
tree | ef09584d90864afcdb15d92ea12bfbf4ceaaa7db /debug_counter.c | |
parent | c617495f8e8e3ef70076fc412172b202e8808981 (diff) |
Fix leaked global symbols for debug counter
Diffstat (limited to 'debug_counter.c')
-rw-r--r-- | debug_counter.c | 4 |
1 files 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)]; 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) 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 |