Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/ds/slot_arena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@
//!
//! ## Implementation Notes
//!
//! - `SlotId` carries a generation counter; stale handles return `None`
//! - `SlotId` stores the generation value assigned by the arena; the arena
//! maintains the authoritative generation counter and validates `SlotId`s
//! against it so that stale handles return `None`
//! - Physical slot indices may be reused after removal, but the
//! generation counter prevents ABA hazards
//! - `len()` tracks live entries, not `slots.len()`
Expand Down