-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Infinite Loop in IMap for compute method #12557
Comments
@Alykoff I reproduced the issue based on your Stackoverflow example using HashSet & then checked the ArrayList version. There are 2 different problem: 1 - When using HashSet, the problem is how Java deserialize the HashSet/ArrayList (collections) & how
this
But your Please see below example:
This code prints 2 - When using So in your case, you should use
or
That |
Related to #11816 |
closing this in favour of #11958 |
3.8.9
,3.9.3
,3.10-BETA-1
macOS High Sierra 10.13.3
When I run this code I have
infinite loop
(insidejava.util.concurrent.ConcurrentMap#compute
):Output:
The text was updated successfully, but these errors were encountered: