From 33a849e385b98326f43b394c456d2bf2981fdf24 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Tue, 22 Jul 2025 11:43:16 -0400 Subject: [PATCH] Remove global symbol lock for rb_gc_free_dsymbol --- symbol.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/symbol.c b/symbol.c index c66e7f067d..d621717e7b 100644 --- a/symbol.c +++ b/symbol.c @@ -957,9 +957,7 @@ rb_gc_free_dsymbol(VALUE sym) VALUE str = RSYMBOL(sym)->fstr; if (str) { - GLOBAL_SYMBOLS_LOCKING(symbols) { - rb_concurrent_set_delete_by_identity(symbols->sym_set, sym); - } + rb_concurrent_set_delete_by_identity(ruby_global_symbols.sym_set, sym); RSYMBOL(sym)->fstr = 0; }