@Override protected final void deallocate() { // We need to first store a reference to the parent before recycle this instance. This is needed as // otherwise it is possible that the same AbstractPooledDerivedByteBuf is again obtained and init(...) is // called before we actually have a chance to call release(). This leads to call release() on the wrong parent. ByteBuf parent = this.parent; recyclerHandle.recycle(this); parent.release(); }
@Override protected final void deallocate() { // We need to first store a reference to the parent before recycle this instance. This is needed as // otherwise it is possible that the same AbstractPooledDerivedByteBuf is again obtained and init(...) is // called before we actually have a chance to call release(). This leads to call release() on the wrong parent. ByteBuf parent = this.parent; recyclerHandle.recycle(this); parent.release(); }
void recycle() { next = null; bufs = null; buf = null; msg = null; promise = null; progress = 0; total = 0; pendingSize = 0; count = -1; cancelled = false; handle.recycle(this); }
@Override protected void deallocate() { if (capacity() > THREAD_LOCAL_BUFFER_SIZE) { super.deallocate(); } else { clear(); handle.recycle(this); } } }
private void recycle() { size = 0; next = null; msg = null; promise = null; handle.recycle(this); } }
private void recycle() { // Set to null so the GC can collect them directly ctx = null; msg = null; promise = null; handle.recycle(this); }
void recycle() { chunk = null; nioBuffer = null; handle = -1; recyclerHandle.recycle(this); } }
/** * Clear and recycle this instance. */ public boolean recycle() { clear(); insertSinceRecycled = false; handle.recycle(this); return true; } }
public void recycle() { clear(); handle.recycle(this); } }
@Override protected void deallocate() { if (capacity() > THREAD_LOCAL_BUFFER_SIZE) { super.deallocate(); } else { clear(); handle.recycle(this); } } }
/** * Clear and recycle this instance. */ public boolean recycle() { msg = null; promise = null; handle.recycle(this); return true; }
private void recycle() { recyclerHandle.recycle(this); }
void recycle() { next = null; bufs = null; buf = null; msg = null; promise = null; progress = 0; total = 0; pendingSize = 0; count = -1; cancelled = false; handle.recycle(this); }
private void recycle() { // Set to null so the GC can collect them directly ctx = null; msg = null; promise = null; handle.recycle(this); }
/** * Clear and recycle this instance. */ public boolean recycle() { msg = null; promise = null; handle.recycle(this); return true; }
@Override protected void deallocate() { if (capacity() > THREAD_LOCAL_BUFFER_SIZE) { super.deallocate(); } else { clear(); handle.recycle(this); } } }
/** * Clear and recycle this instance. */ public boolean recycle() { clear(); insertSinceRecycled = false; handle.recycle(this); return true; } }
void recycle() { chunk = null; nioBuffer = null; handle = -1; recyclerHandle.recycle(this); } }
@Override protected void deallocate() { if (capacity() > THREAD_LOCAL_BUFFER_SIZE) { super.deallocate(); } else { clear(); handle.recycle(this); } } }
private void recycle() { size = 0; next = null; msg = null; promise = null; handle.recycle(this); } }