code: public void clear()
      {
          // clear out ref queue. We don't need to expunge entries
          // since table is getting cleared.
          emptySoftQueue();
  
          Entry tab[] = table;
          for (int i = 0; i < tab.length; ++i)
              tab[i] = null;
          size = 0;
  
          // Allocation of array may have caused GC, which may have caused
          // additional entries to go stale.  Removing these entries from the
          // reference queue will make them eligible for reclamation.
          emptySoftQueue();
      }
docs: Removes all mappings from this map.