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 · 2 comments
Open

Reset the bump allocator? #2843

tareksander opened this issue Apr 21, 2024 · 2 comments

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.

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions!

@github-actions github-actions bot added the stale label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants