zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 32b44497e228c676de17d6c2a2ce78cf145a97c9 (tree)
parent 07782d7a465adc9c5b38f08cb143ba869ed54df5
Author: Robbie Lyman <rb.lymn@gmail.com>
Date:   Thu, 25 Jun 2026 14:49:24 -0400

fix(Io.Uring): free size must match alloc size

Diffstat:
Mlib/std/Io/Uring.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/Io/Uring.zig b/lib/std/Io/Uring.zig @@ -917,7 +917,7 @@ pub fn deinit(ev: *Evented) void { const idle_stack_end_offset = std.mem.alignForward( usize, ev.threads.allocated.len * @sizeOf(Thread) + idle_stack_size, - std.heap.page_size_max, + std.heap.pageSize(), ); for (ev.threads.allocated[1..active_threads]) |*thread| thread.thread.join(); for (ev.threads.allocated[0..active_threads]) |*thread| thread.deinit(ev.backing_allocator);