Home
last modified time | relevance | path

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

/art/compiler/utils/
Dassembler.cc82 size_t new_capacity = std::min(old_capacity * 2, old_capacity + 1 * MB); in ExtendCapacity() local
83 new_capacity = std::max(new_capacity, min_capacity); in ExtendCapacity()
87 allocator_->Realloc(contents_, old_capacity, new_capacity, kArenaAllocAssembler)); in ExtendCapacity()
91 limit_ = ComputeLimit(contents_, new_capacity); in ExtendCapacity()
94 CHECK_EQ(Capacity(), new_capacity); in ExtendCapacity()
/art/runtime/gc/space/
Dmalloc_space.cc280 size_t new_capacity = Capacity(); in ClampGrowthLimit() local
281 CHECK_LE(new_capacity, NonGrowthLimitCapacity()); in ClampGrowthLimit()
282 GetLiveBitmap()->SetHeapSize(new_capacity); in ClampGrowthLimit()
283 GetMarkBitmap()->SetHeapSize(new_capacity); in ClampGrowthLimit()
286 temp_bitmap_.SetHeapSize(new_capacity); in ClampGrowthLimit()
288 GetMemMap()->SetSize(new_capacity); in ClampGrowthLimit()
289 limit_ = Begin() + new_capacity; in ClampGrowthLimit()
Dbump_pointer_space.cc96 size_t BumpPointerSpace::ClampGrowthLimit(size_t new_capacity) { in ClampGrowthLimit() argument
103 size_t clamp_size = Capacity() - new_capacity; in ClampGrowthLimit()
105 new_capacity += clamp_size - free_capacity; in ClampGrowthLimit()
107 SetLimit(Begin() + new_capacity); in ClampGrowthLimit()
109 GetMemMap()->SetSize(new_capacity); in ClampGrowthLimit()
111 GetMarkBitmap()->SetHeapSize(new_capacity); in ClampGrowthLimit()
113 return new_capacity; in ClampGrowthLimit()
Dlarge_object_space.cc403 void FreeListSpace::ClampGrowthLimit(size_t new_capacity) { in ClampGrowthLimit() argument
405 new_capacity = RoundUp(new_capacity, ObjectAlignment()); in ClampGrowthLimit()
406 CHECK_LE(new_capacity, Size()); in ClampGrowthLimit()
407 size_t diff = Size() - new_capacity; in ClampGrowthLimit()
411 new_capacity = Size() - free_end_; in ClampGrowthLimit()
415 size_t alloc_info_size = sizeof(AllocationInfo) * (new_capacity / ObjectAlignment()); in ClampGrowthLimit()
417 mem_map_.SetSize(new_capacity); in ClampGrowthLimit()
Dregion_space.cc804 void RegionSpace::ClampGrowthLimit(size_t new_capacity) { in ClampGrowthLimit() argument
806 CHECK_LE(new_capacity, NonGrowthLimitCapacity()); in ClampGrowthLimit()
807 size_t new_num_regions = new_capacity / kRegionSize; in ClampGrowthLimit()
816 SetLimit(Begin() + new_capacity); in ClampGrowthLimit()
817 if (Size() > new_capacity) { in ClampGrowthLimit()
820 GetMarkBitmap()->SetHeapSize(new_capacity); in ClampGrowthLimit()
821 GetMemMap()->SetSize(new_capacity); in ClampGrowthLimit()
Dbump_pointer_space.h97 size_t ClampGrowthLimit(size_t new_capacity) REQUIRES(!lock_);
Dregion_space.h138 void ClampGrowthLimit(size_t new_capacity) REQUIRES(!region_lock_);
/art/openjdkjvmti/
Djvmti_weak_table-inl.h279 void Resize(size_t new_capacity) {
280 CHECK_GT(new_capacity, capacity);
282 Storage* tmp = allocator.allocate(new_capacity);
290 capacity = new_capacity;
295 size_t new_capacity = 2 * capacity + 1;
296 Resize(new_capacity);
/art/runtime/gc/accounting/
Datomic_stack.h229 void Resize(size_t new_capacity) { in Resize() argument
230 capacity_ = new_capacity; in Resize()
231 growth_limit_ = new_capacity; in Resize()
/art/runtime/gc/allocator/
Drosalloc.cc1490 void RosAlloc::SetFootprintLimit(size_t new_capacity) { in SetFootprintLimit() argument
1492 DCHECK_EQ(RoundUp(new_capacity, gPageSize), new_capacity); in SetFootprintLimit()
1494 if (capacity_ < new_capacity) { in SetFootprintLimit()
1495 CHECK_LE(new_capacity, max_capacity_); in SetFootprintLimit()
1496 capacity_ = new_capacity; in SetFootprintLimit()
/art/runtime/gc/collector/
Dmark_compact.cc651 void MarkCompact::ClampGrowthLimit(size_t new_capacity) { in ClampGrowthLimit() argument
661 new_capacity = bump_pointer_space_->ClampGrowthLimit(new_capacity); in ClampGrowthLimit()
662 if (new_capacity < old_capacity) { in ClampGrowthLimit()
665 from_space_map_.SetSize(new_capacity); in ClampGrowthLimit()
669 if (shadow_to_space_map_.IsValid() && shadow_to_space_map_.Size() > new_capacity) { in ClampGrowthLimit()
670 shadow_to_space_map_.SetSize(new_capacity); in ClampGrowthLimit()
Dmark_compact.h79 void ClampGrowthLimit(size_t new_capacity) REQUIRES(Locks::heap_bitmap_lock_);