@Override
  protected <K, V> RegionAttributes<K, V> getRegionAttributes(String type) {
    RegionAttributes<K, V> ra = super.getRegionAttributes(type);
    AttributesFactory<K, V> factory = new AttributesFactory<>(ra);
    if (!ra.getDataPolicy().isEmpty()) {
      factory.setOffHeap(true);
    }
    return factory.create();
  }
Tests Global Region with OffHeap memory.

@since Geode 1.0
geode-core/src/distributedTest/java/org/apache/geode/cache30/GlobalRegionOffHeapDUnitTest.java