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

Reset the bump allocator? #2843

Open
tareksander opened this issue Apr 21, 2024 · 1 comment
Open

Reset the bump allocator? #2843

tareksander opened this issue Apr 21, 2024 · 1 comment
Labels

Comments

@tareksander
Copy link

Question

I don't expect my modules to allocate much dynamic memory, if any, but I'd like to reset it between runs (so I don't have to create a new memory each time). Is this possible?

@dcodeIO
Copy link
Member

dcodeIO commented Apr 21, 2024

There is heap.reset() when using the stub runtime. Must make sure that there aren't any pointers into then-zeroed memory, of course, say in globals, perhaps initialized during start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants