Skip to content

[3.3] thread cleanup profiler bug 21441 #13672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: ruby_3_3
Choose a base branch
from

Conversation

luke-gruber
Copy link
Contributor

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]

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant