From 32b44497e228c676de17d6c2a2ce78cf145a97c9 Mon Sep 17 00:00:00 2001 From: Robbie Lyman Date: Thu, 25 Jun 2026 14:49:24 -0400 Subject: [PATCH] fix(Io.Uring): free size must match alloc size --- lib/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 index 9184cd574153b4768c76347d4e246120827b4a26..e560500a755281510f64954d12040b1b6c5504b4 100644 --- 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); -- 2.54.0