Struct wasmtime_fiber::FiberStack
source · pub struct FiberStack(_);
Expand description
Represents an execution stack to use for a fiber.
Implementations§
source§impl FiberStack
impl FiberStack
sourcepub unsafe fn from_top_ptr(top: *mut u8) -> Result<Self>
pub unsafe fn from_top_ptr(top: *mut u8) -> Result<Self>
Creates a new fiber stack with the given pointer to the top of the stack.
Safety
This is unsafe because there is no validation of the given stack pointer.
The caller must properly allocate the stack space with a guard page and make the pages accessible for correct behavior.