public synchronized int addLiveEntriesToList(KRFEntry[] liveEntries, int idx,
        DiskRegionView drv, Map<DiskEntry, VersionHolder> pendingKrfTags) {
      DiskEntry de = getPrev();
      while (de != this) {
        VersionHolder tag = null;
        if (pendingKrfTags != null) {
          tag = pendingKrfTags.get(de);
        }
        liveEntries[idx] = new KRFEntry(drv, de, tag);
        idx++;
        de = de.getPrev();
      }
      return idx;
    }
Adds any live entries in this list to liveEntries and returns the index of the next free
slot.

@param liveEntries the array to fill with the live entries
@param idx the first free slot in liveEntries
@param drv the disk region these entries are on
@return the next free slot in liveEntries
geode-core/src/main/java/org/apache/geode/internal/cache/Oplog.java