public long unsharedHeapSizeExcludingData() { long heapSize = EMPTY_SIZE + ObjectSizes.sizeOfArray(cells); // TODO: this can be turned into a simple multiplication, at least while we have only one Cell implementation for (Cell cell : this) heapSize += cell.unsharedHeapSizeExcludingData(); return heapSize; }
public long unsharedHeapSizeExcludingData() { long heapSize = EMPTY_SIZE + ObjectSizes.sizeOfArray(cells); // TODO: this can be turned into a simple multiplication, at least while we have only one Cell implementation for (Cell cell : this) heapSize += cell.unsharedHeapSizeExcludingData(); return heapSize; }
public long unsharedHeapSizeExcludingData() { long heapSize = EMPTY_SIZE + ObjectSizes.sizeOfArray(cells); // TODO: this can be turned into a simple multiplication, at least while we have only one Cell implementation for (Cell cell : this) heapSize += cell.unsharedHeapSizeExcludingData(); return heapSize; }
public long unsharedHeapSizeExcludingData() { long heapSize = EMPTY_SIZE + ObjectSizes.sizeOfArray(cells); // TODO: this can be turned into a simple multiplication, at least while we have only one Cell implementation for (Cell cell : this) heapSize += cell.unsharedHeapSizeExcludingData(); return heapSize; }