-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(lib/runtime/wasmer): common
setupVM
function (#2685)
- Fix: decompress WASM when checking runtime version - Fix: clear allocator when closing instance - Fix: add mutex protection for the entire `UpdateRuntimeCode` body - Add and use new `close` method on `Instance` (without mutex) - Use `close` method in `Stop` method - `setupVM` only takes in the WASM code bytes and returns an instance+allocator - WASM instance context data is set outside setupVM - Minor changes - Sentinel error for 'code is empty' - Remove useless debug log (just logs pointer addresses) - `Instance` named field `mutex` to find references easily - Explicit runtime `Stop` call in `dot/state/initialize.go`
- Loading branch information
Showing
2 changed files
with
82 additions
and
88 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