Revert "Dereference when calling PooledByteBuf.deallocate()"
This reverts commit ddd19f4f21
.
This commit is contained in:
parent
ddd19f4f21
commit
e4900cbdd3
@ -141,14 +141,10 @@ abstract class PooledByteBuf<T> extends AbstractReferenceCountedByteBuf {
|
|||||||
if (handle >= 0) {
|
if (handle >= 0) {
|
||||||
final long handle = this.handle;
|
final long handle = this.handle;
|
||||||
this.handle = -1;
|
this.handle = -1;
|
||||||
boolean sameThread = initThread == Thread.currentThread();
|
|
||||||
chunk.arena.free(chunk, handle, maxLength, sameThread);
|
|
||||||
// Dereference everything so GC can do it's work.
|
|
||||||
chunk = null;
|
|
||||||
tmpNioBuf = null;
|
|
||||||
initThread = null;
|
|
||||||
memory = null;
|
memory = null;
|
||||||
|
boolean sameThread = initThread == Thread.currentThread();
|
||||||
|
initThread = null;
|
||||||
|
chunk.arena.free(chunk, handle, maxLength, sameThread);
|
||||||
recycle();
|
recycle();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user