assemblyscript
assemblyscript copied to clipboard
Reset the bump allocator?
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?
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.
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!