Skip to content

Commit 2d10771

Browse files
Update src/memory_manager.rs
Co-authored-by: Islam El-Ashi <[email protected]>
1 parent 9b5d5b7 commit 2d10771

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/memory_manager.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ impl<M: Memory> MemoryManager<M> {
224224
}
225225
}
226226

227+
/// Frees the specified memory.
228+
/// Note that the underlying physical memory doesn't shrink, but the space previously
229+
/// occupied by the given memory will be reused.
227230
pub fn free(&mut self, id: MemoryId) {
228231
self.inner.borrow_mut().free(id);
229232
}

0 commit comments

Comments
 (0)