Skip to content

Fix hashtable_find_slot infinite loop with tombstones#8

Open
marekweb wants to merge 1 commit intomasterfrom
fix-tombstone-loop
Open

Fix hashtable_find_slot infinite loop with tombstones#8
marekweb wants to merge 1 commit intomasterfrom
fix-tombstone-loop

Conversation

@marekweb
Copy link
Owner

@marekweb marekweb commented Feb 5, 2026

When all slots in a probe sequence are tombstones or non-matching entries, hashtable_find_slot loops forever. Fix by limiting probes to capacity iterations and reusing the first tombstone slot for new insertions.

Also update get, set, and remove to handle tombstone slots returned by find_slot.

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