Skip to content

HashIndex values not dropped until the end of the program? #136

Closed Answered by wvwwvwwv
Dreaming-Codes asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! Values in a HashIndex are not immediately dropped, and they may last longer than the HashIndex instance.

  1. When an entry is removed, they are just marked deleted, because there might be lock-free readers of it. The instance is passed to the EBR garbage collector when the bucket is rearranged (frequent remove & insert triggers a rearrange), the HashIndex is resized, or the HashIndex is dropped.
  2. The EBR garbage collector may not drop garbage instances until the end of the process.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@wvwwvwwv
Comment options

Comment options

You must be logged in to vote
2 replies
@Dreaming-Codes
Comment options

@wvwwvwwv
Comment options

Answer selected by wvwwvwwv
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants