1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix leaked global symbols for debug counter

This commit is contained in:
Nobuyoshi Nakada 2022-07-02 23:56:11 +09:00
parent c617495f8e
commit 62084e1930
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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