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

Function test_host_stack

tests/all/stack_overflow.rs:107–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 return Ok(());
106
107 fn test_host_stack() {
108 HITS.fetch_add(1, SeqCst);
109 assert!(consume_some_stack(0, HOST_STACK) > 0);
110 HITS.fetch_sub(1, SeqCst);
111 }
112
113 #[inline(never)]
114 fn consume_some_stack(ptr: usize, stack: usize) -> usize {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected