Skip to content
Open
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
2 changes: 1 addition & 1 deletion hashmap/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (b *bucket) del(node *hashNode) bool {
if insert {
return false
}
curr.nxt = nil
//curr.nxt = nil -- not sure the purpose of this, but given that Next() is following the linked list, if an interrupt can occur between these lines, the iteration will stop
curr.nxt = next.nxt
atomic.AddUint32(&b.count, ^uint32(0))
return true
Expand Down