Skip to content

Conversation

@ibraheemdev
Copy link
Owner

No description provided.

@ibraheemdev ibraheemdev added the feature New feature or request label Jul 3, 2025

/// A low-level hash table interface.
pub mod table {
pub use crate::raw::table::{HashTable, InsertResult, IntoIter, Iter, IterMut};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing Dealloc, which makes it impossible to use HashTable

Copy link
Contributor

@conradludgate conradludgate Jul 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems Operation and MapGuard are missing too

Tagged {
raw: self,
ptr: self.map_addr(|addr| addr & T::MASK),
ptr: self.map_addr(|addr| addr & Entry::MASK),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the code before was bugged, but happened to work because when boxed it's always 8 bytes aligned. ptr is not supposed to be tagged. I didn't have pointers that were 8 byte aligned and changing this to be raw instead resolved my segfaults.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, nevermind. pointers must be 8 bytes aligned it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants