Home
last modified time | relevance | path

Searched refs:spine (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/src/main/java/java/util/stream/
DSpinedBuffer.java88 protected E[][] spine; field in SpinedBuffer
120 : priorElementCount[spineIndex] + spine[spineIndex].length; in capacity()
125 if (spine == null) { in inflateSpine()
126 spine = (E[][]) new Object[MIN_SPINE_SIZE][]; in inflateSpine()
128 spine[0] = curChunk; in inflateSpine()
141 if (i >= spine.length) { in ensureCapacity()
142 int newSpineSize = spine.length * 2; in ensureCapacity()
143 spine = Arrays.copyOf(spine, newSpineSize); in ensureCapacity()
147 spine[i] = (E[]) new Object[nextChunkSize]; in ensureCapacity()
148 priorElementCount[i] = priorElementCount[i-1] + spine[i-1].length; in ensureCapacity()
[all …]
/libcore/ojluni/src/main/java/java/io/
DObjectOutputStream.java2352 private int[] spine; field in ObjectOutputStream.HandleTable
2363 spine = new int[initialCapacity]; in HandleTable()
2393 int index = hash(obj) % spine.length; in lookup()
2394 for (int i = spine[index]; i >= 0; i = next[i]) { in lookup()
2406 Arrays.fill(spine, -1); in clear()
2423 int index = hash(obj) % spine.length; in insert()
2425 next[handle] = spine[index]; in insert()
2426 spine[index] = handle; in insert()
2434 spine = new int[(spine.length << 1) + 1]; in growSpine()
2435 threshold = (int) (spine.length * loadFactor); in growSpine()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/io/
DObjectOutputStream.java602 private int[] spine; field in ObjectOutputStream.HandleTable