@Override
  public synchronized void clear() {
    map = Collections.emptyMap();
  }
A copy on write hash map that uses weak references for keys.
geode-core/src/main/java/org/apache/geode/internal/util/concurrent/CopyOnWriteWeakHashMap.java