-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wasmvm memory management implementation (#53)
* feat(memory): interfaces * [document]: Memory Management add a new global metadata field to save the end address of remainder block * [backend]: memory management implementation of malloc/free for fast_bins * [backend]: memory management feat: add pseudo-random number generator for vm * [backend]: memory management integrate new source files into Makefile * [backend]: memory management update design doc - use pointers instead of offsets for fast bins - add a head block for sorted-block skiplist - update mem_init accordingly * [backend]: memory management implemented malloc and free for sorted_bins * [backend]: bug fix for memory manager implementation - Offset calculation error, as the plain pointer arithmatics are not in bytes; - Refer to payload wrongly: should refer to its address, not the address it point to; - Add a NULL check;
- Loading branch information
Showing
6 changed files
with
906 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.