Project

General

Profile

« Previous | Next » 

Revision f6cbf499

Added by Luke Gruber about 2 months ago

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]