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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/com/esotericsoftware/kryo/util/Pool.java
Expand Up @@ -48,9 +48,7 @@ public Pool (boolean threadSafe, boolean softReferences, final int maximumCapaci
queue = new LinkedBlockingQueue<T>(maximumCapacity) {
@Override
public boolean add (T o) {
if (size() >= maximumCapacity) return false;
super.add(o);
return true;
return super.offer(o);
}
};
else if (softReferences) {
Expand Down