Skip to content

Conversation

andreas-karlsson
Copy link
Contributor

The allocator we were using (wee-alloc) is old, unmaintained and has memory leaks. This PR switches to the default wasm32-unkown-unkown std allocator. The switch strangely broke the JS and GO test apps. It turned out that what we thought were commands to read from a buffer, were in reality views into the underlying memory which we subsequently freed! The new allocator must be more aggressively reusing or zeroing the memory which helped uncover these bugs.

@vahidlazio vahidlazio merged commit 13c53fc into main Oct 2, 2025
6 checks passed
@github-actions github-actions bot mentioned this pull request Oct 2, 2025
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