-
Notifications
You must be signed in to change notification settings - Fork 154
Unexpected behavior on unit test with assign/erase/assign #31
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
Comments
Hmm, that's interesting. Could be a bug. Could you try |
Sure. I've tried with both of those as well now, and it happens with all 3. It seems that Grampa is the worst of all.. many failures. Linear seems to have a lower frequency of these than Leapfrog. I probably shouldn't make such statements about the frequency between Linear and Leapfrog.. I don't have enough samples to really say. The Grampa was significant in that there were over a dozen failures whereas the others would have 0-3 over 200 runs. |
It was indeed a bug in the maps. I submitted a fix. Thanks a lot for finding this repro case! Feel free to reopen if you have further issues. |
I also noticed you don't seem to be calling |
Apologies if this turns out to be due to my own mishandling of the library.
I've written a test in some of my own code to see what container I should use for a concurrent hash map. The test is as follow (adapted to junction):
My understanding is that an assign operation followed by an erase and then another assign ought to essentially cancel each other out. However, I'm getting spurious failures with junction:
Are my expectations incorrect?
The text was updated successfully, but these errors were encountered: