const default_page_size: usize = switch (builtin.os.tag)
const default_page_size: usize = switch (builtin.os.tag) { // Makes `std.heap.PageAllocator` take the happy path. .windows => 64 * 1024, else => switch (builtin.cpu.arch) { // Max alignment supported by `std.heap.WasmAllocator`. .wasm32, .wasm64 => 64 * 1024, // Avoids too many active mappings when `page_size_max` is low. else => @max(std.heap.page_size_max, 128 * 1024), }, }