Skip to documentation
SLOP

tiny.alloc.sealProcessAllocatorPhase

Reference tiny.alloc sealProcessAllocatorPhase

Defined in tiny.alloc.

Marks the moment startup is over, after which the package can tell a startup allocation from a later one: it ends the initialization phase of the process allocator.

Called byCallsPhaseBoundarysealtest sourcelib.alloc.src.testtest: process allocator phase lifecyc...private sourcelib.alloc.src.policyplatformProcessAllocatorprivate sourcelib.alloc.src.processsealtiny.allocsealProcessAllocatorPhase
Static calls · unresolved targets: 0 · external targets: 0.

Source

Source: lib/alloc/src/policy.zig:78

zig
/// Marks the moment startup is over, after which the package can tell a startup/// allocation from a later one: it ends the initialization phase of the process/// allocator. A caller makes this call once, after the storage it needs at/// startup has been taken. What happens to an allocation that arrives after the/// seal is decided by the process phase mode: under `observe` it is counted and/// goes through, and under `seal` it panics. Under the `off` mode the call does/// nothing.pub fn sealProcessAllocatorPhase() void {    if (comptime process.mode == .off) return;    _ = platformProcessAllocator();    process.seal();}

Source: lib/alloc/src/root.zig:59

zig
pub const sealProcessAllocatorPhase = policy.sealProcessAllocatorPhase;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433