CacheItem[] GetHeapWithShrink () { if (heap == null) return null; if (heapSize > HEAP_RESIZE_THRESHOLD) { int halfTheSize = heapSize >> 1; if (heapCount < halfTheSize) ResizeHeap (halfTheSize + (heapCount / 3)); } return heap; }