geode-core/src/main/java/org/apache/geode/internal/cache/lru/HeapLRUCapacityController.java
public int entrySize(Object key, Object value) throws IllegalArgumentException {
        // value is null only after eviction occurs. A change in size is
        // required for eviction stats, bug 30974
        /*
         * if (value != null) { return 1; } else { return 0; }
         */
        if (value == Token.TOMBSTONE) {
          return 0;
        }

        int size = HeapLRUCapacityController.this.getPerEntryOverhead();
        size += sizeof(key);
        size += sizeof(value);
        return size;
      }
/**
       * As far as we're concerned all entries have the same size
       */
As far as we're concerned all entries have the same size
As far as we ' re concerned all entries have the same size
public int entrySize(Object key, Object value) throws IllegalArgumentException {
        /*
         * if (value != null) { return 1; } else { return 0; }
         */
        if (value == Token.TOMBSTONE) {
          return 0;
        }
        int size = HeapLRUCapacityController.this.getPerEntryOverhead();
        size += sizeof(key);
        size += sizeof(value);
        return size;
      }
public int entrySize ( Object key , Object value ) throws IllegalArgumentException { /*
         * if (value != null) { return 1; } else { return 0; }
         */ if ( value == Token . TOMBSTONE ) { return 0 ; } int size = HeapLRUCapacityController . this . getPerEntryOverhead ( ) ; size += sizeof ( key ) ; size += sizeof ( value ) ; return size ; }
As far as we're concerned all entries have the same size
As far as we ' re concerned all entries have the same size
// value is null only after eviction occurs. A change in size is // required for eviction stats, bug 30974