public long write() throws IOException {
      long bytesWritten = 0;
      if (needsValue) {
        int valueLength = value.getLength();
        if (valueLength > 0) {
          write(value);
          bytesWritten += valueLength;
        }
      }
      return bytesWritten;
    }
Free up any references to possibly large data.
geode-core/src/main/java/org/apache/geode/internal/cache/OverflowOplog.java