Revert "Dereference when calling PooledByteBuf.deallocate()"

This reverts commit 7094c7b797.
This commit is contained in:
Norman Maurer 2015-04-11 06:44:32 +02:00
parent 7094c7b797
commit d8e5d421e1

View File

@ -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();
}
}