Skip to main content

error_poison_ptr

Function error_poison_ptr 

Source
pub fn error_poison_ptr() -> *mut u8
Expand description

Return a pointer to a pre-allocated “poison” Closure heap object. When JIT code tries to call this as a function, it returns itself, preventing cascading crashes. The runtime error flag is already set, so the effect machine will catch it before the poison reaches user code.