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

fix multiq_check_empty to only look at the caller's pool #49065

Merged
merged 2 commits into from
Mar 20, 2023

Conversation

JeffBezanson
Copy link
Member

The scheduler running on the current thread will only pull tasks from its own pool, so it should only check that pool in check_empty, instead of checking all pools. This is tricky to test since I think it basically just affects idle CPU use, but the change should be pretty clearly correct.

@JeffBezanson JeffBezanson added multithreading Base.Threads and related functionality bugfix This change fixes an existing bug backport 1.9 Change should be backported to release-1.9 labels Mar 20, 2023
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Mar 20, 2023
@vtjnash vtjnash merged commit 1323d2f into master Mar 20, 2023
@vtjnash vtjnash deleted the jb/fixinteractive branch March 20, 2023 23:45
@giordano giordano removed the merge me PR is reviewed. Merge when all tests are passing label Mar 21, 2023
KristofferC pushed a commit that referenced this pull request Mar 24, 2023
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
(cherry picked from commit 1323d2f)
@KristofferC KristofferC mentioned this pull request Mar 24, 2023
52 tasks
@KristofferC KristofferC removed the backport 1.9 Change should be backported to release-1.9 label Mar 31, 2023
Xnartharax pushed a commit to Xnartharax/julia that referenced this pull request Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug multithreading Base.Threads and related functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants