diff options
| author | John Hawthorn <john@hawthorn.email> | 2023-12-20 15:29:03 -0800 |
|---|---|---|
| committer | John Hawthorn <john@hawthorn.email> | 2023-12-21 09:17:22 -0800 |
| commit | 1f0304218cf00e05a4a126196676ba221ebf91f6 (patch) | |
| tree | 15174265cdfebc33f9350ee66fc695cd012d0a36 /spec/ruby/core/array/sum_spec.rb | |
| parent | 1710eb9367d7d11f059a17879e00ef7637265558 (diff) | |
Use main_thread->ec from rb_vm_main_ractor_ec
rb_vm_main_ractor_ec was introduced to allow rb_postponed_job_* to work
when fired on non-Ruby threads, which have no EC set, and that is its
only use.
When RUBY_MN_THREADS=1 is set ractor->threads.running_ec is NULL when
the shared thread is sleeping. This instead grabs the EC directly from
the main thread which seems to always be set.
Fixes [Bug #20016]
Co-authored-by: Dustin Brown <dbrown9@gmail.com>
Diffstat (limited to 'spec/ruby/core/array/sum_spec.rb')
0 files changed, 0 insertions, 0 deletions
