Home
last modified time | relevance | path

Searched refs:new_capacity (Results 1 – 7 of 7) sorted by relevance

/art/compiler/utils/
Dassembler.cc79 size_t new_capacity = std::min(old_capacity * 2, old_capacity + 1 * MB); in ExtendCapacity() local
80 new_capacity = std::max(new_capacity, min_capacity); in ExtendCapacity()
84 allocator_->Realloc(contents_, old_capacity, new_capacity, kArenaAllocAssembler)); in ExtendCapacity()
88 limit_ = ComputeLimit(contents_, new_capacity); in ExtendCapacity()
91 CHECK_EQ(Capacity(), new_capacity); in ExtendCapacity()
/art/runtime/gc/space/
Dmalloc_space.cc279 size_t new_capacity = Capacity(); in ClampGrowthLimit() local
280 CHECK_LE(new_capacity, NonGrowthLimitCapacity()); in ClampGrowthLimit()
281 GetLiveBitmap()->SetHeapSize(new_capacity); in ClampGrowthLimit()
282 GetMarkBitmap()->SetHeapSize(new_capacity); in ClampGrowthLimit()
285 temp_bitmap_->SetHeapSize(new_capacity); in ClampGrowthLimit()
287 GetMemMap()->SetSize(new_capacity); in ClampGrowthLimit()
288 limit_ = Begin() + new_capacity; in ClampGrowthLimit()
Dregion_space.cc782 void RegionSpace::ClampGrowthLimit(size_t new_capacity) { in ClampGrowthLimit() argument
784 CHECK_LE(new_capacity, NonGrowthLimitCapacity()); in ClampGrowthLimit()
785 size_t new_num_regions = new_capacity / kRegionSize; in ClampGrowthLimit()
794 SetLimit(Begin() + new_capacity); in ClampGrowthLimit()
795 if (Size() > new_capacity) { in ClampGrowthLimit()
798 GetMarkBitmap()->SetHeapSize(new_capacity); in ClampGrowthLimit()
799 GetMemMap()->SetSize(new_capacity); in ClampGrowthLimit()
Dregion_space.h135 void ClampGrowthLimit(size_t new_capacity) REQUIRES(!region_lock_);
/art/openjdkjvmti/
Djvmti_weak_table-inl.h277 void Resize(size_t new_capacity) {
278 CHECK_GT(new_capacity, capacity);
280 Storage* tmp = allocator.allocate(new_capacity);
288 capacity = new_capacity;
293 size_t new_capacity = 2 * capacity + 1;
294 Resize(new_capacity);
/art/runtime/gc/accounting/
Datomic_stack.h192 void Resize(size_t new_capacity) { in Resize() argument
193 capacity_ = new_capacity; in Resize()
194 growth_limit_ = new_capacity; in Resize()
/art/runtime/gc/allocator/
Drosalloc.cc1496 void RosAlloc::SetFootprintLimit(size_t new_capacity) { in SetFootprintLimit() argument
1498 DCHECK_EQ(RoundUp(new_capacity, kPageSize), new_capacity); in SetFootprintLimit()
1500 if (capacity_ < new_capacity) { in SetFootprintLimit()
1501 CHECK_LE(new_capacity, max_capacity_); in SetFootprintLimit()
1502 capacity_ = new_capacity; in SetFootprintLimit()