Expand description
Per-store ResourceLimiter enforcing a single aggregate cap on
GC heap, linear memory, and host-attached bytes (e.g. compiled regexes).
host_attached_bytes is Arc<AtomicU64> so externref Drop impls can
decrement it without a &mut TenantLimits borrow.
Structs§
- Execution
Usage - Usage survives successful execution, traps, and cleanup of host allocations.
- Memory
CapExceeded - Memory
Exhausted - The run reached its memory cap. Like spent fuel or an expired deadline this ends the run; a program cannot catch it. The refusal that raised it is the error’s source.
- Tenant
Limits
Constants§
Functions§
- install_
tenant_ limits - Call once, immediately after constructing the
Store, before instantiating any module. - is_
memory_ exhausted - Whether
erris the tenant’s cap refusing memory: the engine growing the GC heap, or the host charging bytes it holds for the program.