authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-01 11:32:32+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-01 14:30:05+02:00
log5245c13a8a46520127600845f1c9ab5bca42ded5
tree7a83df69695a779f9a490c879000c984a804169c
parentf6c5f8b79908d6c1550fe535ceb26d1d8944c197
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.heap.PageAllocator: disable hinting on sparc[64]-linux

https://bugzilla.kernel.org/show_bug.cgi?id=221820

1 files changed, 1 insertions(+), 0 deletions(-)

lib/std/heap/PageAllocator.zig+1
......@@ -24,6 +24,7 @@ pub const vtable: Allocator.VTable = .{
2424/// that don't provide a hint (for security reasons, but it serves our needs
2525/// too).
2626const enable_hints = switch (builtin.target.os.tag) {
27 .linux => !builtin.target.cpu.arch.isSPARC(), // https://bugzilla.kernel.org/show_bug.cgi?id=221820
2728 .openbsd => false,
2829 else => true,
2930};