Searched refs:free_capacity (Results 1 – 3 of 3) sorted by relevance
693 bool LocalReferenceTable::EnsureFreeCapacity(size_t free_capacity, std::string* error_msg) { in EnsureFreeCapacity() argument695 DCHECK_GE(free_capacity, static_cast<size_t>(1)); in EnsureFreeCapacity()701 if (free_capacity >= std::numeric_limits<size_t>::max() / kCheckJniEntriesPerReference) { in EnsureFreeCapacity()702 free_capacity = std::numeric_limits<size_t>::max(); in EnsureFreeCapacity()704 free_capacity *= kCheckJniEntriesPerReference; in EnsureFreeCapacity()709 if (free_capacity <= max_entries_ - top_index) { in EnsureFreeCapacity()713 if (free_capacity > kMaxTableSize - top_index) { in EnsureFreeCapacity()716 free_capacity, in EnsureFreeCapacity()723 if (!Resize(top_index + free_capacity, error_msg)) { in EnsureFreeCapacity()724 LOG(WARNING) << "JNI ERROR: Unable to reserve space in EnsureFreeCapacity (" << free_capacity in EnsureFreeCapacity()
321 bool EnsureFreeCapacity(size_t free_capacity, std::string* error_msg)
102 size_t free_capacity = growth_end_ - end; in ClampGrowthLimit() local104 if (clamp_size > free_capacity) { in ClampGrowthLimit()105 new_capacity += clamp_size - free_capacity; in ClampGrowthLimit()