Correctly recycle CharSetBlocks

This commit is contained in:
dordsor21 2022-06-24 15:03:48 +01:00
parent 9762e4e220
commit 38d1a64bf5
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B
2 changed files with 1 additions and 1 deletions

View File

@ -51,6 +51,7 @@ public class CharSetBlocks extends CharBlocks implements IChunkSet {
@Override @Override
public synchronized void recycle() { public synchronized void recycle() {
reset();
POOL.offer(this); POOL.offer(this);
} }

View File

@ -1046,7 +1046,6 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
try { try {
return this.call(chunkSet, () -> { return this.call(chunkSet, () -> {
this.delegate = NULL; this.delegate = NULL;
chunkSet.recycle();
chunkSet = null; chunkSet = null;
calledLock.unlock(stamp); calledLock.unlock(stamp);
}); });