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.
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
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |