question: @ Override public MemChunkHolder < SysMemAllocator > resizeChunk ( MemChunkHolder < SysMemAllocator > mholder , long size ) { MemChunkHolder < SysMemAllocator > ret = null ; boolean ac = null != mholder . getRefId ( ) ; if ( size > 0 ) { if ( currentMemory . get ( ) + size > maxStoreCapacity ) { if ( m_activegc ) { forceGC ( ) ; } } if ( currentMemory . get ( ) + size <= maxStoreCapacity ) { Long addr = m_unsafe . reallocateMemory ( mholder . get ( ) , size ) ; if ( 0 != addr ) { mholder . clear ( ) ; mholder . destroy ( ) ; ret = new MemChunkHolder < SysMemAllocator > ( this , addr , size ) ; if ( ac ) { m_chunkcollector . register ( ret ) ; } } } } return ret ; }
target:  re-size a specified chunk on its backed memory pool.