Skip to content
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

Only need to wait for a single scheduler thread to become active #4544

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

dipinhora
Copy link
Contributor

Prior to this commit, ponyint_sched_maybe_wakeup_if_all_asleep would wait until the number of active scheduler check variable matched the active schedule count variable. This could potentially cause it to unnecessarily wait for more than 1 scheduler thread to become fully active.

This commit changes the logic to only wait until the active scheduler check variable indicates that there is at least one fully active scheduler.

Prior to this commit, ponyint_sched_maybe_wakeup_if_all_asleep would
wait until the number of active scheduler check variable matched
the active schedule count variable. This could potentially cause it
to unnecessarily wait for more than 1 scheduler thread to become
fully active.

This commit changes the logic to only wait until the active
scheduler check variable indicates that there is at least one
fully active scheduler.
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Nov 23, 2024
@dipinhora
Copy link
Contributor Author

not sure why the PR / arm Linux glibc (pull_request) build segfaulted but i don't believe it is related to this change..

@SeanTAllen SeanTAllen merged commit f383fea into ponylang:main Nov 25, 2024
21 checks passed
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Nov 25, 2024
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.

3 participants