MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / os_bounds_are_sane_on_this_platform

Function os_bounds_are_sane_on_this_platform

codegraph-kernel/src/stack.rs:206–213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204
205 #[test]
206 fn os_bounds_are_sane_on_this_platform() {
207 // Every shipped target has an OS implementation; the fallback budget
208 // is only for platforms the kernel is not built for.
209 let low = os_stack_low().expect("OS stack bounds available");
210 let sp = current_sp();
211 assert!(low < sp, "stack low {low:#x} must be below the current sp {sp:#x}");
212 assert!(sp - low < 1 << 31, "implausible stack size {}", sp - low);
213 }
214
215 #[test]
216 fn small_stack_reports_its_own_bounds() {

Callers

nothing calls this directly

Calls 2

os_stack_lowFunction · 0.85
current_spFunction · 0.85

Tested by

no test coverage detected