diff options
| author | Hampus Fröjdholm <hampus.frojdholm@gmail.com> | 2024-05-18 11:43:42 +0200 |
|---|---|---|
| committer | Hampus Fröjdholm <hampus.frojdholm@gmail.com> | 2024-05-18 11:43:42 +0200 |
| commit | 61f1b2db704c9bfa96c6a965fdba57cf3692b2c9 (patch) | |
| tree | c9581f08f298b77908211240ad9a93f06364952d /lib/std/Build/Cache/DepTokenizer.zig | |
| parent | 6a65561e3e5f82f126ec4795e5cd9c07392b457b (diff) | |
| download | zig-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 'lib/std/Build/Cache/DepTokenizer.zig')
0 files changed, 0 insertions, 0 deletions
