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(wasi): Memory leak due to cyclical WasiControlPlane references #3643

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

theduke
Copy link
Contributor

@theduke theduke commented Mar 5, 2023

Fixed by WasiProcess just storing a Weak<> handle to the control plane.

Note: This could/should also be changed so that the WasiProcess does not
have a handle to the control plane at all, but that requires some
slightly bigger refactoring that also changes or removes the SignalHandlerAbi

Closes #3642

Fixed by WasiProcess just storing a Weak<> handle to the control plane.

Note: This could/should also be changed so that the WasiProcess does not
have a handle to the control plane at all, but that requires some
slightly bigger refactoring that also changes or removes the SignalHandlerAbi

Closes #3642
@theduke theduke enabled auto-merge (rebase) March 6, 2023 08:04
@theduke theduke merged commit b761c82 into master Mar 6, 2023
@theduke theduke deleted the wasi-fix-cyclical-leak branch March 6, 2023 08:30
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.

wasi: Memory Leak due to Cyclical WasiControlPlane References
2 participants