-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[browser/WASM + .NET9] why is the garbage collector still not doing its job? #110100
Comments
Tagging subscribers to this area: @dotnet/gc |
The fix #108512 was not backported to 9.0. |
Tagging subscribers to this area: @BrzVlad |
@huoyaoyuan thanks for your feedback. So it only would be available with .NET10, correct? |
You can raise a request for backport here. If approved, it will be available in future patches of 9.0. |
Thanks for clarification @huoyaoyuan |
There is known workaround and the backport is not planned. |
@pavelsavara to clarify:
|
Description
I had an open issue here which was closed as being fixed. However, it turns out that it's not fixed at all with .NET 9.
This made me update the repo to latest dependencies:
Minimal.zip
Scenario:
I confirmed by working with @jeromelaban (CTO, Platform UNO) that this by no means is a Platform UNO issue but clearly a .NET WASM issue. He pointed out that adding
GC.GetTotalMemory(true);
to the code would workaround the issue. Please review the minimal code and the comments which I added.WASM: Why is the GC not releasing memory for objects which are no longer in use? Why would I have to explicitly call
GC.GetTotalMemory(true);
to make sure the GC does its job?Reproduction Steps
see above
Expected behavior
see above
Actual behavior
see above
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: