From 8638bd3b8978909c4bf9f3af3d94222ee73df740 Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Mon, 24 Mar 2025 01:23:07 -0400 Subject: [PATCH] Fix slab iteration bug in `heap_cache_register_superpage` Increment of `i` is handled near the start of this loop. --- base/runtime/heap_allocator_implementation.odin | 1 - 1 file changed, 1 deletion(-) diff --git a/base/runtime/heap_allocator_implementation.odin b/base/runtime/heap_allocator_implementation.odin index cf3f2d795..28bfc6505 100644 --- a/base/runtime/heap_allocator_implementation.odin +++ b/base/runtime/heap_allocator_implementation.odin @@ -524,7 +524,6 @@ heap_cache_register_superpage :: proc "contextless" (superpage: ^Heap_Superpage) heap_cache_add_slab(slab, heap_bin_size_to_rank(slab.bin_size)) } - i += 1 heap_debug_cover(.Superpage_Registered_With_Slab_In_Use) } }