Skip to content

fix: various memory issues#35

Merged
vahidlazio merged 4 commits intomainfrom
fix-memory-issues
Oct 2, 2025
Merged

fix: various memory issues#35
vahidlazio merged 4 commits intomainfrom
fix-memory-issues

Conversation

@andreas-karlsson
Copy link
Copy Markdown
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
@github-actions github-actions Bot mentioned this pull request Apr 29, 2026
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