Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HW6] all_hazards_protected #785

Closed
so-w-on opened this issue Dec 19, 2022 · 1 comment
Closed

[HW6] all_hazards_protected #785

so-w-on opened this issue Dec 19, 2022 · 1 comment
Assignees
Labels
homework - hazard_pointer hazard_pointer/{mod,hazard,retire}.rs question Further information is requested

Comments

@so-w-on
Copy link

so-w-on commented Dec 19, 2022

Hi! I fail all_hazards_protected but not all_hazards_unprotected.
So I want to know what the difference between them.
The only differences I found are :
// leak the shield so that
mem::forget(shield);
And
let intersection: HashSet<_> = all.intersection(&values).collect();
I'm specially curious about the comment since it's not completed.

@so-w-on so-w-on added the question Further information is requested label Dec 19, 2022
@tomtomjhj tomtomjhj added the homework - hazard_pointer hazard_pointer/{mod,hazard,retire}.rs label Dec 19, 2022
@tomtomjhj
Copy link
Member

  • leak the shield so that the slot is not cleared

@so-w-on so-w-on closed this as completed Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
homework - hazard_pointer hazard_pointer/{mod,hazard,retire}.rs question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants