diff options
author | nagachika <[email protected]> | 2025-06-14 11:39:08 +0900 |
---|---|---|
committer | nagachika <[email protected]> | 2025-06-14 11:39:08 +0900 |
commit | d5c8fd2043f4425c3fe2a87558dfbd80ebff9911 (patch) | |
tree | 8ee75502a2b3e48f2a03df63fa004b23e958a8bb /spec/ruby/command_line | |
parent | fb8248b3e8d099662b37b118bc7152aed82dfcc8 (diff) |
merge revision(s) f6cbf499bc98b851034fffb49fcbb59d495f6f7b: [Backport #21354]
Fix Symbol#to_proc (rb_sym_to_proc) to be ractor safe
In non-main ractors, don't use `sym_proc_cache`. It is not thread-safe
to add to this array without a lock and also it leaks procs from one
ractor to another. Instead, we create a new proc each time. If this
results in poor performance we can come up with a solution later.
Fixes [Bug #21354]
Diffstat (limited to 'spec/ruby/command_line')
0 files changed, 0 insertions, 0 deletions