public void readyForFree() {
    AddressableMemoryManager.writeIntVolatile(getAddress() + REF_COUNT_OFFSET, 0);
  }
The upper two bits are used for the isSerialized and isCompressed flags.
geode-core/src/main/java/org/apache/geode/internal/offheap/OffHeapStoredObject.java