Searched refs:maxStates (Results 1 – 2 of 2) sorted by relevance
144 void TrimCache(size_t maxStates, size_t gcLimit, const char *name, T *cache) in TrimCache() argument146 const size_t kGarbageCollectionLimit = maxStates / 2 + gcLimit; in TrimCache()150 WARN() << "Overflowed the " << name << " cache limit of " << (maxStates / 2) in TrimCache()152 cache->ShrinkToSize(maxStates / 2); in TrimCache()
265 int maxStates; member1461 if (ctxt->maxStates == 0) { in xmlRegStatePush()1462 ctxt->maxStates = 4; in xmlRegStatePush()1463 ctxt->states = (xmlRegStatePtr *) xmlMalloc(ctxt->maxStates * in xmlRegStatePush()1467 ctxt->maxStates = 0; in xmlRegStatePush()1470 } else if (ctxt->nbStates >= ctxt->maxStates) { in xmlRegStatePush()1472 ctxt->maxStates *= 2; in xmlRegStatePush()1473 tmp = (xmlRegStatePtr *) xmlRealloc(ctxt->states, ctxt->maxStates * in xmlRegStatePush()1477 ctxt->maxStates /= 2; in xmlRegStatePush()