Home
last modified time | relevance | path

Searched refs:capacity_ (Results 1 – 8 of 8) sorted by relevance

/art/runtime/
Dmonitor_pool.cc31 : num_chunks_(0), capacity_(0), first_free_(nullptr) { in MonitorPool()
41 if (num_chunks_ == capacity_) { in AllocateChunk()
42 if (capacity_ == 0U) { in AllocateChunk()
44 capacity_ = kInitialChunkStorage; in AllocateChunk()
45 uintptr_t* new_backing = new uintptr_t[capacity_]; in AllocateChunk()
48 size_t new_capacity = 2 * capacity_; in AllocateChunk()
51 memcpy(new_backing, old_backing, sizeof(uintptr_t) * capacity_); in AllocateChunk()
53 capacity_ = new_capacity; in AllocateChunk()
55 VLOG(monitor) << "Resizing to capacity " << capacity_; in AllocateChunk()
Dindirect_reference_table.h232 : table_(table), i_(i), capacity_(capacity) { in IrtIterator()
252 const size_t capacity_; variable
Dmonitor_pool.h176 size_t capacity_ GUARDED_BY(Locks::allocated_monitor_ids_lock_);
/art/runtime/gc/accounting/
Datomic_stack.h78 return AtomicPushBackInternal(value, capacity_); in AtomicPushBackIgnoreGrowthLimit()
118 for (size_t i = 0; i < capacity_; ++i) { in AssertAllZero()
172 return capacity_; in Capacity()
177 capacity_ = new_capacity; in Resize()
214 capacity_(capacity), in AtomicStack()
239 mem_map_.reset(MemMap::MapAnonymous(name_.c_str(), nullptr, capacity_ * sizeof(begin_[0]), in Init()
262 size_t capacity_; variable
/art/runtime/gc/allocator/
Drosalloc.h377 DCHECK_LT(addr, base_ + capacity_); in ToPageMapIndex()
384 DCHECK(base_ <= addr && addr < reinterpret_cast<uint8_t*>(base_) + capacity_); in RoundDownToPageMapIndex()
442 size_t capacity_; variable
511 uint8_t* End() { return base_ + capacity_; } in End()
635 DCHECK_LT(idx, capacity_ / kPageSize); in IsFreePage()
Drosalloc.cc56 capacity_(capacity), max_capacity_(max_capacity), in RosAlloc()
71 << std::hex << (intptr_t)(base_ + capacity_) in RosAlloc()
72 << ", capacity=" << std::dec << capacity_ in RosAlloc()
80 DCHECK_EQ(footprint_, capacity_); in RosAlloc()
96 free_pages->SetByteSize(this, capacity_); in RosAlloc()
97 DCHECK_EQ(capacity_ % kPageSize, static_cast<size_t>(0)); in RosAlloc()
160 if (UNLIKELY(res == nullptr && capacity_ > footprint_)) { in AllocPages()
174 if (capacity_ - footprint_ + last_free_page_run_size >= req_byte_size) { in AllocPages()
177 capacity_ - footprint_); in AllocPages()
209 DCHECK_LE(footprint_ + increment, capacity_); in AllocPages()
[all …]
/art/runtime/gc/
Dheap.cc153 capacity_(capacity), in Heap()
321 capacity_, &error_str)); in Heap()
325 main_mem_map_1.reset(MemMap::MapAnonymous(kMemMapSpaceName[0], request_begin, capacity_, in Heap()
335 capacity_, &error_str)); in Heap()
355 region_space_ = space::RegionSpace::Create("Region space", capacity_ * 2, request_begin); in Heap()
372 CreateMainMallocSpace(main_mem_map_1.release(), initial_size, growth_limit_, capacity_); in Heap()
394 growth_limit_, capacity_, name, true)); in Heap()
405 capacity_); in Heap()
3354 capacity_ = growth_limit_; in ClampGrowthLimit()
3368 growth_limit_ = capacity_; in ClearGrowthLimit()
Dheap.h996 size_t capacity_; variable