public void clear ( ) { for ( OPointer pointer : pointersPool ) { allocator . deallocate ( pointer ) ; } pointersPool . clear ( ) ; pointersPoolSize . set ( 0 ) ; for ( OPointer pointer : pointerMapping . keySet ( ) ) { allocator . deallocate ( pointer ) ; } pointerMapping . clear ( ) ; }
Clears pool and dealocates memory .