Repository navigation
Conversation
…ane thread's timed waits A score or decide asker waited untimed on the host's wake condition, which the lane thread also waits on, timed, when idle. std.Io.Condition hands a broadcast's signals to the waiters registered at that moment, and each takes one only once its futex wait returns. When the lane thread answered an ask and went back to its idle wait before the woken asker had taken its signal, the lane thread's new timed wait found that signal when it expired and took it; the asker then found none and slept on with its answer ready, until some other work broadcast wake again. Askers now wait untimed on the score queue's own condition, broadcast when answers are set or the host closes; the lane thread keeps wake. test-lane-condition-stress-host makes that schedule certain rather than hoping load hits it: it runs the real host, lane thread and Engine.score on std.testing.io with its futex waits observed, holding the asker once woken until the lane thread has begun two timed waits on wake. With the asker on wake the answer never arrives (the test reports it after three seconds and the host's close frees the asker); on its own condition it returns at once.
… cancel's timed waits A cancel waits for its response's end with a deadline on the manager's ended condition; the server's shutdown waited untimed on the same condition for every job to leave. std.Io.Condition lets a timed waiter that waits again take a signal a broadcast left for another waiter. Today no wake shutdown needs can be taken that way: a cancel waits again only while its own job is still listed, so the last job's end, the one wake shutdown waits for, is never followed by a cancel's wait. Shutdown now waits untimed on drained, broadcast with ended when a job leaves, so that a later timed waiter on ended cannot take it either. No behaviour changes today; the test the first version carried, a copy of the manager's wait shape, is dropped (it never ran the manager's code).
… thread's are Two tests waited untimed on the host's wake for the halt reason while the lane thread, which also waits on wake with timeouts when idle, was running: the shape the score askers had. The lane thread is held inside the backend there today, so nothing strands, but a timed wait that re-checks the reason cannot strand however the lane thread waits.
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI for a landing train: #4688 #4690 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.