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

Do not probabilistically steal blocking tasks as part of anti-starvat… #898

Merged
merged 1 commit into from
Dec 18, 2018

Conversation

qwwdfsad
Copy link
Collaborator

…ion mechanism: stealing thread might be woken up in blockingQuiescence and already have a blocking task in its local queue

Copy link
Contributor

@elizarov elizarov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good. It definitely does not break anything, but I do not fully understand what issue it solves. Is there a link to an issue? Can there be a test?

parkedWorkersStackPush(this)
if (!blockingQuiescence()) {
return false
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ Code style: Format those "quick returns" without curly braces, especially since if (!blockingQuiescence()) return is one-liner in two other places).

…ion mechanism: stealing thread might be woken up in `blockingQuiescence` and already have a blocking task in its local queue
@qwwdfsad qwwdfsad merged commit 8853126 into develop Dec 18, 2018
@qwwdfsad qwwdfsad deleted the blocking-race branch December 18, 2018 09:00
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