Skip to main content

alloc_test_stack

Function alloc_test_stack 

Source
pub fn alloc_test_stack() -> *mut u64
Expand description

Allocate a fresh stack and register it as the current strand’s base.

Convenience wrapper for tests: installs the stack base so ops like pick / roll / clone_stack that depend on get_stack_base() behave correctly in a single-strand test harness.