Skip to documentation
SLOP

tiny.alloc.longLivedProcessAllocator

Reference tiny.alloc longLivedProcessAllocator

Defined in tiny.alloc.

Returns the allocator for storage that lives for the whole process.

Called byCallstest sourcelib.alloc.src.testtest: allocator diagnostics mode rout...test sourcelib.alloc.src.testtest: allocator policy separates fast...private sourcelib.alloc.src.policyplatformProcessAllocatortiny.alloclongLivedProcessAllocator
Static calls · unresolved targets: 0 · external targets: 0.

Source

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

zig
/// Returns the allocator for storage that lives for the whole process. Which/// allocator that is comes from the build's diagnostics setting and its phase/// setting. Everything taken from it goes back through it before the process/// finishes tearing down.pub fn longLivedProcessAllocator() Allocator {    return platformProcessAllocator();}

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

zig
pub const longLivedProcessAllocator = policy.longLivedProcessAllocator;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433