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

Prevent ISE Queue full #804 #805

Merged
merged 1 commit into from Jan 8, 2021

Conversation

wyhasany
Copy link
Contributor

@wyhasany wyhasany commented Jan 7, 2021

Prevent throwing exception on multi-threaded environment where two
concurrent threads can change state between these lines:

if (size() >= maximumCapacity) return false;
super.add(o);

what causes mentioned exception.

Prevent throwing exception on multi-threaded environment where two
concurrent threads can change state between these lines:
```
if (size() >= maximumCapacity) return false;
super.add(o);
```
what causes mentioned exception.
@theigl theigl added the bug label Jan 8, 2021
@theigl theigl self-assigned this Jan 8, 2021
@theigl theigl merged commit feaedd4 into EsotericSoftware:master Jan 8, 2021
@theigl
Copy link
Collaborator

theigl commented Jan 8, 2021

Good catch @wyhasany! Thanks you!

@wyhasany
Copy link
Contributor Author

wyhasany commented Jan 8, 2021

@theigl Thanks for merging 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

llegalStateException on calling free for pooled item to synchronized pool using soft references and being full
2 participants