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

Method allow_alloc_after_oom

crates/fuzzing/src/oom.rs:272–275  ·  view source on GitHub ↗

Configure whether to allow allocation attempts after an OOM has already been injected. The default is `false`.

(&mut self, allow: bool)

Source from the content-addressed store, hash-verified

270 ///
271 /// The default is `false`.
272 pub fn allow_alloc_after_oom(&mut self, allow: bool) -> &mut Self {
273 self.allow_alloc_after_oom = allow;
274 self
275 }
276
277 /// Configure whether allocations after an OOM (assuming
278 /// `allow_alloc_after_oom(true)`) will succeed or will always return null.

Calls

no outgoing calls