Skip to documentation
SLOP

tiny.alloc.beginProcessAllocatorTeardown

Reference tiny.alloc beginProcessAllocatorTeardown

Defined in tiny.alloc.

Opens the teardown phase, so a free that follows counts as no violation and a caller can release the storage taken at startup.

Called byCallsPhaseBoundarybeginTeardowntest sourcelib.alloc.src.testtest: process allocator phase lifecyc...private sourcelib.alloc.src.policyplatformProcessAllocatorprivate sourcelib.alloc.src.processbeginTeardowntiny.allocbeginProcessAllocatorTeardown
Static calls · unresolved targets: 0 · external targets: 0.

Source

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

zig
/// Opens the teardown phase, so a free that follows counts as no violation and/// a caller can release the storage taken at startup. A caller makes this call/// after steady work has stopped and before releasing the storage that lives as/// long as the process. Under the `off` mode the call does nothing.pub fn beginProcessAllocatorTeardown() void {    if (comptime process.mode == .off) return;    _ = platformProcessAllocator();    process.beginTeardown();}

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

zig
pub const beginProcessAllocatorTeardown = policy.beginProcessAllocatorTeardown;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433