Remove global symbol lock for rb_gc_free_dsymbol

This commit is contained in:
Peter Zhu 2025-07-22 11:43:16 -04:00
parent 85221800ca
commit 33a849e385

View file

@ -957,9 +957,7 @@ rb_gc_free_dsymbol(VALUE sym)
VALUE str = RSYMBOL(sym)->fstr; VALUE str = RSYMBOL(sym)->fstr;
if (str) { if (str) {
GLOBAL_SYMBOLS_LOCKING(symbols) { rb_concurrent_set_delete_by_identity(ruby_global_symbols.sym_set, sym);
rb_concurrent_set_delete_by_identity(symbols->sym_set, sym);
}
RSYMBOL(sym)->fstr = 0; RSYMBOL(sym)->fstr = 0;
} }