Skip to main content

charge_current_task_memory

Function charge_current_task_memory 

Source
pub fn charge_current_task_memory(bytes: u64) -> Result<(), SyscallError>
Expand description

Charge memory usage against the current task’s silo quota (if any).

Returns OutOfMemory when charging would exceed SiloConfig.mem_max. Tasks that are not part of a silo are ignored.