Skip to content

[Question] epoch + 3 or epoch + 2? #597

@ming535

Description

@ming535

Hi, I was studying the lecture on epoch based garbage collection, the lecture proves that when retire an object at epoch E, it is safe to free the object at E + 3 since the two "happens before" releation.

Screen Shot 2022-03-11 at 15 48 14

And I was also looking into the code of crossebeam-epoch, it seems that crossbeam-epoch has used E + 3 and reverts it back to E + 2:

I am not sure if this is the right place to ask, but I am confused that crossbeam-epoch reverted back to E + 2.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions