tiny.mprompt.processAllocator
Defined in tiny.mprompt.
Returns the process-wide allocator of the sys package, so the effect layer allocates its resumption records from the same allocator as the runtime.
Source
Source: lib/mprompt/src/prompt.zig:1091
zig
/// Returns the process-wide allocator of the `sys` package, so the effect layer allocates its/// resumption records from the same allocator as the runtime. The runtime allocates from it the/// prompt records, the stacklet records, the saved stack copies, and the records behind multi-shot/// handles. A program can replace this allocator through the `sys` package's override.pub fn processAllocator() std.mem.Allocator { return sys.allocator.processAllocator();}Source: lib/mprompt/src/root.zig:94
zig
pub const processAllocator = raw.processAllocator;Complete caller list
11 direct callers.
lib.mprompt.src.prompt.GSave.free[function] — private source atlib/mprompt/src/prompt.zig:385in nearest public ownerlib.mprompt.src.promptlib.mprompt.src.prompt.GStack.alloc[function] — private source atlib/mprompt/src/prompt.zig:172in nearest public ownerlib.mprompt.src.promptlib.mprompt.src.prompt.GStack.free[function] — private source atlib/mprompt/src/prompt.zig:241in nearest public ownerlib.mprompt.src.promptlib.mprompt.src.prompt.GStack.save[function] — private source atlib/mprompt/src/prompt.zig:360in nearest public ownerlib.mprompt.src.promptlib.mprompt.src.prompt.PromptSave.free[function] — private source atlib/mprompt/src/prompt.zig:398in nearest public ownerlib.mprompt.src.promptlib.mprompt.src.prompt.ensureThreadSignalStack[function] — private source atlib/mprompt/src/prompt.zig:1056in nearest public ownerlib.mprompt.src.promptlib.mprompt.src.prompt.mresumeDrop[function] — private source atlib/mprompt/src/prompt.zig:828in nearest public ownerlib.mprompt.src.promptlib.mprompt.src.prompt.promptAlloc[function] — private source atlib/mprompt/src/prompt.zig:501in nearest public ownerlib.mprompt.src.promptlib.mprompt.src.prompt.promptRelease[function] — private source atlib/mprompt/src/prompt.zig:794in nearest public ownerlib.mprompt.src.promptlib.mprompt.src.prompt.promptSave[function] — private source atlib/mprompt/src/prompt.zig:869in nearest public ownerlib.mprompt.src.prompttiny.mprompt.resumeMulti[function] atlib/mprompt/src/prompt.zig:629
Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |