List<MemoryBlock> getAllocatedBlocks() {
    final List<MemoryBlock> value = new ArrayList<>();
    addBlocksFromChunks(getLiveChunks(), value); // used chunks
    Collections.sort(value, (o1, o2) -> Long.compare(o1.getAddress(), o2.getAddress()));
    return value;
  }
Tests override this method to simulate concurrent modification
geode-core/src/main/java/org/apache/geode/internal/offheap/FreeListManager.java