We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8bc42b commit 8f50983Copy full SHA for 8f50983
1 file changed
crates/wasmtime/src/runtime/vm/instance.rs
@@ -681,6 +681,9 @@ impl Instance {
681
) -> Result<Option<usize>, Error> {
682
let memory = &mut self.as_mut().memories_mut()[idx].1;
683
684
+ // SAFETY: this is the safe wrapper around `Memory::grow` because it
685
+ // automatically updates the `VMMemoryDefinition` in this instance after
686
+ // a growth operation below.
687
let result = unsafe { memory.grow(delta, limiter).await };
688
689
// Update the state used by a non-shared Wasm memory in case the base
0 commit comments