public void clear(){
  m_writeLock.lock();
  m_chunks.clear();
  m_writeLock.unlock();
  for (  final IMemoryListener listener : m_listeners) {
    listener.memoryCleared();
  }
}

public void clear ( ) { m_writeLock . lock ( ) ; m_chunks . clear ( ) ; m_writeLock . unlock ( ) ; for ( final IMemoryListener listener : m_listeners ) { listener . memoryCleared ( ) ; } }
clears the simulated memory .
