Description
At one point some work was done to allow PdxInstances to be created that would have a reference to off-heap memory instead of copying the off-heap memory to a heap byte array.
This work was not completed. Currently if you call EntryEventImpl.deserializeOffHeap then it will return an optimized PdxInstance. But the callers need to be changed to then release that PdxInstances off-heap retained reference.
The main place to look into calling deserializeOffHeap is OffHeapStoredObject.getDeserializedValue(Region, RegionEntry) when it currently does this: EntryEventImpl.deserialize(getRawBytes())