We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2235fdb commit 42f9545Copy full SHA for 42f9545
symbol.c
@@ -827,12 +827,10 @@ sym_find(VALUE str)
827
{
828
VALUE sym;
829
830
- GLOBAL_SYMBOLS_LOCKING(symbols) {
831
- struct sym_set_static_sym_entry static_sym = {
832
- .str = str
833
- };
834
- sym = rb_concurrent_set_find(&symbols->sym_set, sym_set_static_sym_tag(&static_sym));
835
- }
+ struct sym_set_static_sym_entry static_sym = {
+ .str = str
+ };
+ sym = rb_concurrent_set_find(&ruby_global_symbols.sym_set, sym_set_static_sym_tag(&static_sym));
836
837
if (sym) {
838
return sym_set_entry_to_sym(sym);
0 commit comments