[browser/WASM + .NET9] why is the garbage collector still not doing its job? #110100
Labels
area-GC-mono
os-browser
Browser variant of arch-wasm
untriaged
New issue has not been triaged by the area owner
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: