Lines Matching refs:threshold
88 size_t threshold = CAPACITY_THRESHOLD;
90 if (minNewCapacity == threshold) {
91 return threshold;
94 // If over threshold, step by threshold.
95 if (minNewCapacity > threshold) {
96 size_t newCapacity = minNewCapacity / threshold * threshold;
98 if ((maxDataCapacity_ > 0) && (newCapacity > maxDataCapacity_ - threshold)) {
101 newCapacity += threshold;
107 // Not over threshold. Double it.