diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2025-09-23 16:20:04 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-23 16:20:04 -0400 |
| commit | 06b7a70837d831b8628ae2adde9318371c111d82 (patch) | |
| tree | cd0826c747f6f8dc2b8a856fa9064fe3dd3a0c9f /include/ruby/internal | |
| parent | 39d764ed800fa6c930ff23067de323fd2fde4c2a (diff) | |
Fix thread_profile_frames crashing due to uninitialized PC
ZJIT never sets `cfp->jit_return`, so to avoid crashing while
profiling, we need to explicitly validate the PC of the top most frame.
Particularly pertinent for profilers that call rb_profile_frames() from
within a signal handler such as Vernier and Stackprof since they
can sample at any time and observe an invalid PC.
Diffstat (limited to 'include/ruby/internal')
0 files changed, 0 insertions, 0 deletions
