diff options
| author | John Hawthorn <john@hawthorn.email> | 2023-12-20 13:54:32 -0800 |
|---|---|---|
| committer | John Hawthorn <john@hawthorn.email> | 2023-12-21 15:23:19 -0800 |
| commit | ffa5f16273f46c97bfca56e4549b0b38b9322d63 (patch) | |
| tree | a81aa4e9058bddb21a9b49f9ac01b9d7571d0117 /lib/ruby_vm | |
| parent | 78b27ce62a7d6f28c73d6fb4f97b0948859be8e0 (diff) | |
Make rb_profile_frames return 0 for NULL ec
When using M:N threads, EC is set to NULL in the shared native thread
when nothing is scheduled. This previously caused a segfault when we try
to examine the EC.
Returning 0 instead means we may miss profiling information, but a
profiler relying on this isn't thread aware anyways, and observing that
"nothing" is running is probably correct.
Fixes [Bug #20017]
Co-authored-by: Dustin Brown <dbrown9@gmail.com>
Diffstat (limited to 'lib/ruby_vm')
0 files changed, 0 insertions, 0 deletions
