public void releaseAll ( ) { synchronized ( this ) { Object [ ] refSet = allocatedMemoryReferences . values ( ) . toArray ( ) ; if ( refSet . length != 0 ) { logger . finer ( "Releasing allocated memory regions" ) ; } for ( Object ref : refSet ) { release ( ( MemoryReference ) ref ) ; } } }
Release all memory addresses taken by this allocator . Be careful in using this method since all of the memory addresses become invalid .