Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix a ractor scheduling issue #12520

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: master
Choose a base branch
from
Open

Conversation

luke-gru
Copy link
Contributor

@luke-gru luke-gru commented Jan 6, 2025

This issue occurs when there are multiple ractors and threads within those ractors. When an SNT finishes with a thread and the ractor global run queue (grq) is non-empty, make sure the next thread's ractor is enqueued before switching back to native context. Before this change, this did not always occur and could all SNTs sleeping on dequeuing an empty grq when there was work left.

Fixes [Bug #20905]

This issue occurs when there are multiple ractors and threads within
those ractors. When an SNT finishes with a thread and the ractor global
run queue (grq) is non-empty, make sure the next thread's ractor is enqueued
before switching back to native context. Before this change, this did
not always occur and could all SNTs sleeping on dequeuing an empty grq when
there was work left.

Fixes [Bug #20905]
@jhawthorn jhawthorn self-assigned this May 13, 2025
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.

2 participants