From 5245c13a8a46520127600845f1c9ab5bca42ded5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sat, 1 Aug 2026 11:32:32 +0200 Subject: [PATCH] std.heap.PageAllocator: disable hinting on sparc[64]-linux https://bugzilla.kernel.org/show_bug.cgi?id=221820 --- lib/std/heap/PageAllocator.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/std/heap/PageAllocator.zig b/lib/std/heap/PageAllocator.zig index db736036b3f416d34a934b7185ac4a953affa303..1adac776bb9ac7a1d145bc7a5e464eedefd84f29 100644 --- a/lib/std/heap/PageAllocator.zig +++ b/lib/std/heap/PageAllocator.zig @@ -24,6 +24,7 @@ pub const vtable: Allocator.VTable = .{ /// that don't provide a hint (for security reasons, but it serves our needs /// too). const enable_hints = switch (builtin.target.os.tag) { + .linux => !builtin.target.cpu.arch.isSPARC(), // https://bugzilla.kernel.org/show_bug.cgi?id=221820 .openbsd => false, else => true, }; -- 2.54.0