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; }