Avoid draining pool in gardener cleanup#26
Closed
wtn wants to merge 1 commit into
Closed
Conversation
971b090 to
6656b3f
Compare
Co-authored-by: Claude <noreply@anthropic.com>
6656b3f to
9a33998
Compare
|
Hmm, I'm not sure about this issue. I could reproduce a hang: But this program is malformed, since the resource is never released, that's an expected hang. The pool is designed to gracefully clean up. If you rewrite the program: It does not hang. I think it's better to have correct semantics and hang when the program is malformed. If there is a valid program that results in a hang, feel free to open a new issue. |
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.
When a
Syncscope exits while the gardener is waiting,Async::Cancelinterrupts@condition.wait(@mutex)inside@mutex.synchronize, producing aThreadErrorwarning. The gardener's ensure also calledself.close→drain, which could block if resources are still acquired during teardown.The gardener's
ensurenow force-retires resources directly instead of callingclose/drain.Types of Changes
Contribution