Revert "Dereference when calling PooledByteBuf.deallocate()"
This reverts commit 7094c7b797
.
This commit is contained in:
parent
7094c7b797
commit
d8e5d421e1
@ -143,14 +143,10 @@ abstract class PooledByteBuf<T> extends AbstractReferenceCountedByteBuf {
|
||||
if (handle >= 0) {
|
||||
final long handle = this.handle;
|
||||
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;
|
||||
|
||||
boolean sameThread = initThread == Thread.currentThread();
|
||||
initThread = null;
|
||||
chunk.arena.free(chunk, handle, maxLength, sameThread);
|
||||
recycle();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user