-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
Use lock for set iteration. #1524
Conversation
Test262 conformance changes:
Fixed tests (2):
|
Couldn't this be implemented as rustc does, with |
I did think of that, but there would have to be some differences as the behaviour when deleting is slightly different. I can investigate whether it would be worth it |
I investigated a little bit more and rustc in actuality uses a newtype wrapping a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok to me, but as @jedel1043 said, might be a good idea to make use of the NewTypes we have implemented for Map
rather than having really similar ones here.
Hey @joshwd36, do you have time to get back to this? Could you explain the downsides to not using the struct implemented for the Map. |
I'm closing this for now, since it's not being updated. Feel free to open a new PR with a rebased proposal. |
This Pull Request fixes the issue of concurrent modification of a set during iteration, similar to that in map in #1092.
It changes the following:
This implementation is very similar to that of #1366, and so should not present any additional issues.