assemblyscript icon indicating copy to clipboard operation
assemblyscript copied to clipboard

Reset the bump allocator?

Open tareksander opened this issue 1 year ago • 1 comments

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?

tareksander avatar Apr 21 '24 20:04 tareksander

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.

dcodeIO avatar Apr 21 '24 21:04 dcodeIO

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[bot] avatar May 21 '24 23:05 github-actions[bot]