Skip to content

fix: drop entries before clear_slow - #17

Merged
DaniPopes merged 4 commits into
mainfrom
fix/drop-on-clear-slow
May 30, 2026
Merged

fix: drop entries before clear_slow#17
DaniPopes merged 4 commits into
mainfrom
fix/drop-on-clear-slow

Conversation

@DaniPopes

Copy link
Copy Markdown
Owner

clear_slow zeroed bucket storage without first dropping initialized entries. For K or V types that own heap data, this leaked resources and prevented Bucket::drop from observing the old ALIVE_BIT later.

Drop the bucket slice when entries need drop before reinitializing the storage with zeroed buckets, and add a regression test that tracks drops across clear_slow and cache drop.

DaniPopes added 4 commits May 30, 2026 06:27
clear_slow zeroed bucket storage without first dropping initialized entries. For K or V types that own heap data, this leaked resources and prevented Bucket::drop from observing the old ALIVE_BIT later.

Drop the bucket slice when entries need drop before reinitializing the storage with zeroed buckets, and add a regression test that tracks drops across clear_slow and cache drop.
@DaniPopes
DaniPopes merged commit bc4538e into main May 30, 2026
11 checks passed
@DaniPopes
DaniPopes deleted the fix/drop-on-clear-slow branch May 30, 2026 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant