Commit edfcbac
thread_cleanup: set CFP to NULL before clearing ec's stack
We clear the CFP first so that if a sampling profiler interrupts the current thread during `rb_ec_set_vm_stack`,
`thread_profile_frames` returns early instead of trying to walk the stack that's no longer set on the ec.
The early return in `thread_profile_frames` was introduced at eab7f46.
Fixes [Bug #21441]1 parent c57efbf commit edfcbac
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3618 | 3618 | | |
3619 | 3619 | | |
3620 | 3620 | | |
3621 | | - | |
3622 | | - | |
3623 | | - | |
| 3621 | + | |
| 3622 | + | |
3624 | 3623 | | |
| 3624 | + | |
3625 | 3625 | | |
3626 | 3626 | | |
3627 | 3627 | | |
| |||
0 commit comments