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 a memory leak in the test suite #1593

Merged
merged 1 commit into from
Apr 28, 2020

Conversation

alexcrichton
Copy link
Member

This test creates a cycle between two Func objects (and indirectly
through their instance) which prevents anything from being collected.
This was found when running tests locally with address sanitizer, and
using a Weak<T> breaks the cycle to allow collecting resources.

This test creates a cycle between two `Func` objects (and indirectly
through their instance) which prevents anything from being collected.
This was found when running tests locally with address sanitizer, and
using a `Weak<T>` breaks the cycle to allow collecting resources.
@alexcrichton alexcrichton requested a review from fitzgen April 28, 2020 19:17
@fitzgen fitzgen merged commit 4fdc434 into bytecodealliance:master Apr 28, 2020
@alexcrichton alexcrichton deleted the fix-test-leak branch September 9, 2021 15:15
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