private void copyEntriesToList() {
      assert segments[currentSegmentIndex] != null : "unexpected null currentSegment";
      assert segments[currentSegmentIndex].listUpdateLock.getReadLockCount() > 0;

      currentList.clear();
      currentListIndex = 0;
      for (HashEntry<K, V> p = nextEntry.getNextEntry(); p != null; p = p.getNextEntry()) {
        currentList.add(p);
      }
    }
Copy the tail of list of current matched entry ({@link #nextEntry}) to a temporary list, so
that the read lock can be released after the copy.

Read lock on {@link #currentSegmentIndex}'s listUpdateLock should already be acquired.
geode-core/src/main/java/org/apache/geode/internal/util/concurrent/CustomEntryConcurrentHashMap.java