Revert "Dereference when calling PooledByteBuf.deallocate()"

This reverts commit ddd19f4f21.
This commit is contained in:
Norman Maurer 2015-04-11 06:44:10 +02:00
parent ddd19f4f21
commit e4900cbdd3

View File

@ -141,14 +141,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();
}
}