Skip to main content

BARE_YIELD_RECEIVER_SLOT

Constant BARE_YIELD_RECEIVER_SLOT 

Source
pub const BARE_YIELD_RECEIVER_SLOT: u8 = 9;
Expand description

Slot the chain Image’s yield_receiver_slot points at, holding the chain’s Cap::Instance[YieldReceiver] (its catch-set; per-block reset). The kernel reads it when routing a yield.

The per-syscall factory/marker slots (set_gas_meter, mint_gas, create_yield_catcher, …) that used to follow are gone: a syscall is a host_yield of a named kernel:* YieldSender from the top-level scratchpad CNode, caught by the kernel as the root YieldReceiver — not a CALL into a factory Instance pinned at a well-known slot.