Home
last modified time | relevance | path

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

/art/runtime/jni/
Dlocal_reference_table.cc693 bool LocalReferenceTable::EnsureFreeCapacity(size_t free_capacity, std::string* error_msg) { in EnsureFreeCapacity() argument
695 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()
Dlocal_reference_table.h321 bool EnsureFreeCapacity(size_t free_capacity, std::string* error_msg)
/art/runtime/gc/space/
Dbump_pointer_space.cc102 size_t free_capacity = growth_end_ - end; in ClampGrowthLimit() local
104 if (clamp_size > free_capacity) { in ClampGrowthLimit()
105 new_capacity += clamp_size - free_capacity; in ClampGrowthLimit()