public long adviseTotalMemoryAllocation() {
    final AtomicLong total = new AtomicLong();
    adviseFilter(profile -> {
      // probably not needed as all profiles for a partitioned region are Partition profiles
      if (profile instanceof PartitionProfile) {
        PartitionProfile p = (PartitionProfile) profile;
        total.addAndGet(p.localMaxMemory);
      }
      return false;
    });
    return total.get();
  }
Queue up a removal due to region destroy

@param mbr the member being removed
@param serials the serials it had
geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/RegionAdvisor.java