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
17 changes: 17 additions & 0 deletions Cargo.lock

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

11 changes: 11 additions & 0 deletions lib/api/src/entities/memory/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,17 @@ impl SharedMemory {
}
}

/// The backing VM shared-memory handle.
///
/// Clones of the handle share the same underlying allocation, so an
/// embedder can keep a clone and operate on the memory (e.g. grow it via
/// [`LinearMemory::grow`]) from any thread without holding a store.
///
/// [`LinearMemory::grow`]: wasmer_vm::LinearMemory::grow
Comment on lines +78 to +84
pub fn vm_shared_memory(&self) -> &VMSharedMemory {
&self.memory
}

#[inline]
fn shared_ops(&self) -> Result<&(dyn SharedMemoryOps + Send + Sync), AtomicsError> {
self.ops
Expand Down
Loading