Global Variables

next_mmap_addr_hint
?[*]align(mem.page_size) u8

TODO Utilize this on Windows.

Functions

fn alignPageAllocLen(full_len: usize, len: usize) usize

Verifies that the adjusted length will still map to the full length

fn logToWriterAllocator(parent_allocator: Allocator, writer: anytype) LogToWriterAllocator(@TypeOf(writer))

No documentation provided.

fn loggingAllocator(parent_allocator: Allocator) LoggingAllocator(.debug, .err)

No documentation provided.

fn stackFallback(comptime size: usize, fallback_allocator: Allocator) StackFallbackAllocator(size)

Returns a StackFallbackAllocator allocating using either a `FixedBufferAlloca…

Returns a StackFallbackAllocator allocating using either a FixedBufferAllocator on an array of size size and falling back to fallback_allocator if that fails.

fn testAllocator(base_allocator: mem.Allocator) !void

This one should not try alignments that exceed what C malloc can handle.

fn testAllocatorAligned(base_allocator: mem.Allocator) !void

No documentation provided.

fn testAllocatorAlignedShrink(base_allocator: mem.Allocator) !void

No documentation provided.

fn testAllocatorLargeAlignment(base_allocator: mem.Allocator) !void

No documentation provided.

Values

HeapAllocator
type
ThreadSafeFixedBufferAllocator
undefined
c_allocator
Allocator

Supports the full Allocator interface, including alignment, and exploiting `mal…

page_allocator
type

This allocator makes a syscall directly for every allocation and free. Thread-s…

raw_c_allocator
Allocator

Asserts allocations are within @alignOf(std.c.max_align_t) and directly calls …

wasm_allocator
Allocator

This allocator is fast, small, and specific to WebAssembly. In the future, this…