code: public void endDataSwapPhase(){
  
          if (nextMap == null) {
              throw new IllegalStateException("Cannot call PhasedHeapFriendlyHashMap.endDataSwapPhase(), not currently in data swap phase");
          }
  
          HeapFriendlyHashMap<K, V> temp = currentMap;
  
          currentMap = nextMap;
          nextMap = null;
  
          temp.releaseObjectArrays();
  
          recycler.clearNextCycleObjectArrays();
      }
docs: Ends the data swap phase<p />
  
  While out of the data swap phase, using {@link PhasedHeapFriendlyHashMap#put(Object, Object)}
  will throw an {@link IllegalStateException} <p />