authorgravatar for bence.masa@gmail.comMasa Bence <bence.masa@gmail.com> 2026-10-18 14:53:19+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-10-21 19:11:05+02:00
logd8a597b56ab34dcc791689509a626138ba93d755
treede206bef555c84303a90b4f261ed48ad9c839783
parent465b2d51d1a54761b3517eef93ccffcf7df44233

update ArrrayList in `heap.zig` to unamanged


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

lib/std/heap.zig+2-2
......@@ -544,13 +544,13 @@ pub fn testAllocatorAlignedShrink(base_allocator: mem.Allocator) !void {
544544 var slice = try allocator.alignedAlloc(u8, .@"16", alloc_size);
545545 defer allocator.free(slice);
546546
547 var stuff_to_free = std.array_list.Managed([]align(16) u8).init(debug_allocator);
547 var stuff_to_free: std.ArrayList([]align(16) u8) = .empty;
548548 // On Windows, VirtualAlloc returns addresses aligned to a 64K boundary,
549549 // which is 16 pages, hence the 32. This test may require to increase
550550 // the size of the allocations feeding the `allocator` parameter if they
551551 // fail, because of this high over-alignment we want to have.
552552 while (@intFromPtr(slice.ptr) == mem.alignForward(usize, @intFromPtr(slice.ptr), pageSize() * 32)) {
553 try stuff_to_free.append(slice);
553 try stuff_to_free.append(debug_allocator, slice);
554554 slice = try allocator.alignedAlloc(u8, .@"16", alloc_size);
555555 }
556556 while (stuff_to_free.pop()) |item| {