aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm.zig
diff options
context:
space:
mode:
authorHampus Fröjdholm <hampus.frojdholm@gmail.com>2024-05-18 11:43:42 +0200
committerHampus Fröjdholm <hampus.frojdholm@gmail.com>2024-05-18 11:43:42 +0200
commit61f1b2db704c9bfa96c6a965fdba57cf3692b2c9 (patch)
treec9581f08f298b77908211240ad9a93f06364952d /src/codegen/llvm.zig
parent6a65561e3e5f82f126ec4795e5cd9c07392b457b (diff)
downloadzig-61f1b2db704c9bfa96c6a965fdba57cf3692b2c9.tar.gz
zig-61f1b2db704c9bfa96c6a965fdba57cf3692b2c9.zip
gpa: Add helper to calculate size class of empty buckets
Empty buckets have their `alloc_cursor` set to `slot_count` to allow the size class to be calculated later. This happens deep within the free function. This adds a helper and a test to verify that the size class of empty buckets is indeed recoverable.
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions