Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 30 additions & 50 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ repository = "https://github.com/hyperlight-dev/hyperlight-wasm"
readme = "README.md"

[workspace.dependencies]
hyperlight-common = { version = "0.13.1", default-features = false }
hyperlight-component-macro = { version = "0.13.1" }
hyperlight-component-util = { version = "0.13.1" }
hyperlight-guest = { version = "0.13.1" }
hyperlight-guest-bin = { version = "0.13.1", features = [ "printf" ] }
hyperlight-host = { version = "0.13.1", default-features = false, features = ["executable_heap"] }
hyperlight-common = { version = "0.14.0", default-features = false }
hyperlight-component-macro = { version = "0.14.0" }
hyperlight-component-util = { version = "0.14.0" }
hyperlight-guest = { version = "0.14.0" }
hyperlight-guest-bin = { version = "0.14.0", features = [ "printf" ] }
hyperlight-host = { version = "0.14.0", default-features = false, features = ["executable_heap"] }
hyperlight-wasm-macro = { version = "0.13.1", path = "src/hyperlight_wasm_macro" }
hyperlight-wasm-runtime = { version = "0.13.1", path = "src/hyperlight_wasm_runtime" }
11 changes: 7 additions & 4 deletions src/hyperlight_wasm/src/sandbox/loaded_wasm_sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,14 @@ impl LoadedWasmSandbox {
}
}

/// Unload the wasm module and return a `WasmSandbox` that can be used to load another module.
/// Unload the wasm module and return a `WasmSandbox` that can be
/// used to load another module.
///
/// This method internally calls [`restore()`](Self::restore) to reset the sandbox to its
/// pre-module state, which also clears any poisoned state. This means `unload_module()`
/// can be called on a poisoned sandbox to recover it.
/// This method defers calling [`restore()`](Self::restore) to
/// reset the sandbox to its pre-module state until a new module
/// is loaded. However, the sandbox will always be restored when a
/// new module is loaded, so a poisoned sandbox can be recovered
/// by unloading and reloading a module.
pub fn unload_module(mut self) -> Result<WasmSandbox> {
let sandbox = self
.inner
Expand Down
Loading
Loading