static boolean isOffHeapReference(Object o) {
    return (o instanceof StoredObject) && ((StoredObject) o).hasRefCount();
  }
Return true if the given "o" is reference to off-heap memory.
geode-core/src/main/java/org/apache/geode/internal/offheap/StoredObject.java