-
Notifications
You must be signed in to change notification settings - Fork 990
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
Resources should need only one submission to be released #4917
Comments
My take is that we should not attempt to release resource in a specific order and just let the |
True, but we've to solve this problem. |
I am in the middle of a fair amount of churn in the resource deallocation logic, and there was the winter break but I'm hoping to get to all of this soon. The alternative I'm hoping for is the simple/dumb one: When A is dropped, it drops the reference of B. If A was the only thing holding B alive, then B naturally gets deallocated immediately after A. |
In mem_leaks.rs we can see that it has been modified to add 2 consecutive poll.
This should not be necessary.
Resources should be released in a specific order to avoid keeping as marked to be used resourced that should not be used anymore.
Expected behavior:
In a single submission all resources even with dependencies should be released
Tagging @nical & @jimblandy for info
The text was updated successfully, but these errors were encountered: