Commit e2389db
committed
Fix thread_profile_frames crashing due to uninitialized PC
ZJIT leaves cfp->pc uninitialized in many instances, and the conditions
in thread_profile_frames() was outdated, leading sampling profilers to
crash.
Check `cfp->pc` for validity in a way that works for both YJIT and ZJIT.1 parent 5b5b5b3 commit e2389db
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1729 | 1729 | | |
1730 | 1730 | | |
1731 | 1731 | | |
1732 | | - | |
1733 | 1732 | | |
1734 | 1733 | | |
1735 | 1734 | | |
| |||
1761 | 1760 | | |
1762 | 1761 | | |
1763 | 1762 | | |
1764 | | - | |
1765 | | - | |
1766 | | - | |
1767 | | - | |
1768 | | - | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
1769 | 1766 | | |
1770 | 1767 | | |
1771 | 1768 | | |
| |||
0 commit comments