@Override
  public boolean isSerialized() {
    return (AddressableMemoryManager.readInt(memoryAddress + REF_COUNT_OFFSET)
        & IS_SERIALIZED_BIT) != 0;
  }
We want this to include memory overhead so use getSize() instead of getDataSize().
geode-core/src/main/java/org/apache/geode/internal/offheap/OffHeapStoredObject.java