Skip to content

Commit 8f50983

Browse files
committed
Review comments
1 parent a8bc42b commit 8f50983

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

crates/wasmtime/src/runtime/vm/instance.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,9 @@ impl Instance {
681681
) -> Result<Option<usize>, Error> {
682682
let memory = &mut self.as_mut().memories_mut()[idx].1;
683683

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.
684687
let result = unsafe { memory.grow(delta, limiter).await };
685688

686689
// Update the state used by a non-shared Wasm memory in case the base

0 commit comments

Comments
 (0)