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
Race condition in TestAllocPutThenGet #55
Comments
I think it's a problem of the test function, instead of a race condition.
Get selects an arbitrary item from the Pool, removes it from the Pool, and returns it to the caller. Get may choose to ignore the pool and treat it as empty. Callers should not assume any relation between values passed to Put and the values returned by Get. |
Thank you so much for your prompt resolution to this issue! |
While investigating #54, I decided to see if adding the
-race
flag would help, and came across a different intermittent test failure.Test command:
Thanks!
/cc @rogers0, @LocutusOfBorg
The text was updated successfully, but these errors were encountered: