void setReferenceCountOwner(Object owner) {
    if (trackReferenceCounts()) {
      if (refCountOwner.get() != null) {
        AtomicInteger reenterCount = refCountReenterCount.get();
        if (owner != null) {
          reenterCount.incrementAndGet();
        } else {
          if (reenterCount.decrementAndGet() <= 0) {
            refCountOwner.set(null);
            reenterCount.set(0);
          }
        }
      } else {
        AtomicInteger reenterCount = refCountReenterCount.get();
        if (reenterCount == null) {
          reenterCount = new AtomicInteger(0);
          refCountReenterCount.set(reenterCount);
        }
        if (owner != null) {
          reenterCount.set(1);
        } else {
          reenterCount.set(0);
        }
        refCountOwner.set(owner);
      }
    }
  }
Optional call to tell the tracker the logical "owner" of the reference count. For example you
could set the particular EntryEventImpl instance that incremented the reference count and is
responsible for decrementing it. Calling this method is a noop if !trackReferenceCounts.
geode-core/src/main/java/org/apache/geode/internal/offheap/ReferenceCountHelperImpl.java