gpa: Fix GeneralPurposeAllocator double free stack traces
commit762e2a4b52084beb41fb4a0d34d55f5a907db00a
authorHampus Fröjdholm <hampus.frojdholm@gmail.com>
Sat, 18 May 2024 09:46:37 +0000 (18 11:46 +0200)
committerHampus Fröjdholm <hampus.frojdholm@gmail.com>
Sat, 18 May 2024 09:46:37 +0000 (18 11:46 +0200)
tree54c5d698e4dd1bf48a5992393d984ef534bd0b0c
parent61f1b2db704c9bfa96c6a965fdba57cf3692b2c9
gpa: Fix GeneralPurposeAllocator double free stack traces

The wrong `size_class` was used when fetching stack traces from empty
buckets. The `size_class` would always be the maximum value after
exhausting the search of active buckets rather than the actual
`size_class` of the allocation.
lib/std/heap/general_purpose_allocator.zig