MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / needs_startup

Method needs_startup

crates/wasmtime/src/runtime/vm/instance.rs:1538–1547  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1536 }
1537
1538 pub(crate) fn needs_startup(&self) -> bool {
1539 match self.env_module().startup {
1540 ModuleStartup::None => false,
1541 ModuleStartup::Always(_) => true,
1542 ModuleStartup::IfMemoriesNeedInit(_) => self
1543 .memories
1544 .iter()
1545 .any(|(_, (_, memory))| memory.needs_init()),
1546 }
1547 }
1548}
1549
1550// SAFETY: `layout` should describe this accurately and `OwnedVMContext` is the

Callers 1

new_startedMethod · 0.80

Calls 4

anyMethod · 0.80
env_moduleMethod · 0.45
iterMethod · 0.45
needs_initMethod · 0.45

Tested by

no test coverage detected