From c1e31711788f5ce7a2ce9d2f030f0b1f5773f6f4 Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Sat, 14 Jun 2025 13:51:53 -0400 Subject: [PATCH] mem: Remove comment about calling `panic` The behavior is codified in the comment as returning `Invalid_Pointer`. --- core/mem/allocators.odin | 1 - 1 file changed, 1 deletion(-) diff --git a/core/mem/allocators.odin b/core/mem/allocators.odin index 94104180b..5e16e5207 100644 --- a/core/mem/allocators.odin +++ b/core/mem/allocators.odin @@ -979,7 +979,6 @@ stack_free :: proc( header := (^Stack_Allocation_Header)(curr_addr - size_of(Stack_Allocation_Header)) old_offset := int(curr_addr - uintptr(header.padding) - uintptr(raw_data(s.data))) if old_offset != s.prev_offset { - // panic("Out of order stack allocator free"); return .Invalid_Pointer }