Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

main_thread_area_buffer

The main motivation for the size chosen here is to be larger than total amount of thread-local variables for most programs. Putting this allocation in the ELF like this is equivalent to moving the mmap call below into the kernel, avoiding syscall overhead.

tls.main_thread_area_buffer
var main_thread_area_buffer: [0x1000]u8 align(page_size_min) = undefined

File

Code

var main_thread_area_buffer: [0x1000]u8 align(page_size_min) = undefined