Home
last modified time | relevance | path

Searched refs:capacity (Results 1 – 25 of 40) sorted by relevance

12

/art/runtime/gc/space/
Dmalloc_space.cc74 … size_t* growth_limit, size_t* capacity, uint8_t* requested_begin) { in CreateMemMap() argument
85 if (*growth_limit > *capacity) { in CreateMemMap()
88 << PrettySize(*capacity) << ")"; in CreateMemMap()
94 *capacity = RoundUp(*capacity, kPageSize); in CreateMemMap()
97 MemMap* mem_map = MemMap::MapAnonymous(name.c_str(), requested_begin, *capacity, in CreateMemMap()
101 << PrettySize(*capacity) << ": " << error_msg; in CreateMemMap()
182 const size_t capacity = NonGrowthLimitCapacity() - size; in CreateZygoteSpace() local
194 VLOG(heap) << "Capacity " << PrettySize(capacity); in CreateZygoteSpace()
200 void* allocator = CreateAllocator(End(), starting_size_, initial_size_, capacity, in CreateZygoteSpace()
204 if (capacity > initial_size_) { in CreateZygoteSpace()
[all …]
Ddlmalloc_space_random_test.cc26 size_t capacity, uint8_t* requested_begin) { in CreateDlMallocSpace() argument
27 return DlMallocSpace::Create(name, initial_size, growth_limit, capacity, requested_begin, false); in CreateDlMallocSpace()
Ddlmalloc_space_static_test.cc26 size_t capacity, uint8_t* requested_begin) { in CreateDlMallocSpace() argument
27 return DlMallocSpace::Create(name, initial_size, growth_limit, capacity, requested_begin, false); in CreateDlMallocSpace()
Drosalloc_space_static_test.cc24 size_t capacity, uint8_t* requested_begin) { in CreateRosAllocSpace() argument
25 return RosAllocSpace::Create(name, initial_size, growth_limit, capacity, requested_begin, in CreateRosAllocSpace()
Drosalloc_space_random_test.cc24 size_t capacity, uint8_t* requested_begin) { in CreateRosAllocSpace() argument
25 return RosAllocSpace::Create(name, initial_size, growth_limit, capacity, requested_begin, in CreateRosAllocSpace()
Ddlmalloc_space.cc52 size_t growth_limit, size_t capacity, in CreateFromMemMap() argument
63 if (capacity - starting_size > 0) { in CreateFromMemMap()
64 CheckedCall(mprotect, name.c_str(), end, capacity - starting_size, PROT_NONE); in CreateFromMemMap()
71 mem_map, initial_size, name, mspace, begin, end, begin + capacity, growth_limit, in CreateFromMemMap()
74 return new DlMallocSpace(mem_map, initial_size, name, mspace, begin, end, begin + capacity, in CreateFromMemMap()
80 size_t growth_limit, size_t capacity, uint8_t* requested_begin, in Create() argument
88 << " capacity=" << PrettySize(capacity) in Create()
97 MemMap* mem_map = CreateMemMap(name, starting_size, &initial_size, &growth_limit, &capacity, in Create()
101 << PrettySize(capacity); in Create()
105 growth_limit, capacity, can_move_objects); in Create()
Drosalloc_space.cc59 size_t growth_limit, size_t capacity, in CreateFromMemMap() argument
66 capacity, low_memory_mode, running_on_memory_tool); in CreateFromMemMap()
74 if (capacity - starting_size > 0) { in CreateFromMemMap()
75 CheckedCall(mprotect, name.c_str(), end, capacity - starting_size, PROT_NONE); in CreateFromMemMap()
84 mem_map, initial_size, name, rosalloc, begin, end, begin + capacity, growth_limit, in CreateFromMemMap()
87 return new RosAllocSpace(mem_map, initial_size, name, rosalloc, begin, end, begin + capacity, in CreateFromMemMap()
97 size_t growth_limit, size_t capacity, uint8_t* requested_begin, in Create() argument
105 << " capacity=" << PrettySize(capacity) in Create()
114 MemMap* mem_map = CreateMemMap(name, starting_size, &initial_size, &growth_limit, &capacity, in Create()
118 << PrettySize(capacity); in Create()
[all …]
Dbump_pointer_space.cc27 BumpPointerSpace* BumpPointerSpace::Create(const std::string& name, size_t capacity, in Create() argument
29 capacity = RoundUp(capacity, kPageSize); in Create()
31 std::unique_ptr<MemMap> mem_map(MemMap::MapAnonymous(name.c_str(), requested_begin, capacity, in Create()
36 << PrettySize(capacity) << " with message " << error_msg; in Create()
Dspace.cc83 const size_t capacity = static_cast<size_t>(std::numeric_limits<uint32_t>::max()); in DiscontinuousSpace() local
85 capacity)); in DiscontinuousSpace()
88 capacity)); in DiscontinuousSpace()
Dlarge_object_space_test.cc41 const size_t capacity = 128 * MB; in LargeObjectTest() local
45 los = space::FreeListSpace::Create("large object space", nullptr, capacity); in LargeObjectTest()
51 CHECK_LE(static_cast<uintptr_t>(los->GetLiveBitmap()->HeapBegin() + capacity), in LargeObjectTest()
Dspace_test.h128 size_t capacity, uint8_t* requested_begin);
326 size_t capacity = 16 * MB; in SizeFootPrintGrowthLimitAndTrimDriver() local
327 MallocSpace* space(create_space("test", initial_size, growth_limit, capacity, nullptr)); in SizeFootPrintGrowthLimitAndTrimDriver()
332 EXPECT_EQ(space->NonGrowthLimitCapacity(), capacity); in SizeFootPrintGrowthLimitAndTrimDriver()
343 EXPECT_EQ(space->Capacity(), capacity); in SizeFootPrintGrowthLimitAndTrimDriver()
344 SizeFootPrintGrowthLimitAndTrimBody(space, object_size, 3, capacity); in SizeFootPrintGrowthLimitAndTrimDriver()
Dregion_space.cc36 MemMap* RegionSpace::CreateMemMap(const std::string& name, size_t capacity, in CreateMemMap() argument
38 CHECK_ALIGNED(capacity, kRegionSize); in CreateMemMap()
46 capacity + kRegionSize, in CreateMemMap()
59 << PrettySize(capacity) << " with message " << error_msg; in CreateMemMap()
63 CHECK_EQ(mem_map->Size(), capacity + kRegionSize); in CreateMemMap()
69 mem_map->SetSize(capacity); in CreateMemMap()
76 CHECK_EQ(mem_map->Size(), capacity); in CreateMemMap()
Ddlmalloc_space.h39 size_t growth_limit, size_t capacity,
47 size_t capacity, uint8_t* requested_begin, bool can_move_objects);
Drosalloc_space.h42 size_t capacity, uint8_t* requested_begin, bool low_memory_mode,
46 size_t growth_limit, size_t capacity,
Dspace_create_test.cc37 size_t capacity, in CreateSpace() argument
44 capacity, in CreateSpace()
52 capacity, in CreateSpace()
Dmalloc_space.h145 size_t* growth_limit, size_t* capacity, uint8_t* requested_begin);
Dbump_pointer_space.h49 …static BumpPointerSpace* Create(const std::string& name, size_t capacity, uint8_t* requested_begin…
/art/openjdkjvmti/
Djvmti_weak_table-inl.h256 capacity(reserve) {
261 allocator.deallocate(data, capacity);
262 capacity = 0;
272 capacity = 0;
278 CHECK_GT(new_capacity, capacity);
287 allocator.deallocate(old, capacity);
288 capacity = new_capacity;
292 if (size == capacity) {
293 size_t new_capacity = 2 * capacity + 1;
302 size_t capacity;
/art/runtime/gc/accounting/
Datomic_stack.h66 static AtomicStack* Create(const std::string& name, size_t growth_limit, size_t capacity) { in Create() argument
67 std::unique_ptr<AtomicStack> mark_stack(new AtomicStack(name, growth_limit, capacity)); in Create()
221 AtomicStack(const std::string& name, size_t growth_limit, size_t capacity) in AtomicStack() argument
227 capacity_(capacity), in AtomicStack()
Dcard_table.cc64 size_t capacity = heap_capacity / kCardSize; in Create() local
68 MemMap::MapAnonymous("card table", nullptr, capacity + 256, PROT_READ | PROT_WRITE, in Create()
Dread_barrier_table.h38 size_t capacity = static_cast<size_t>(kHeapCapacity / kRegionSize); in ReadBarrierTable() local
42 MemMap* mem_map = MemMap::MapAnonymous("read barrier table", nullptr, capacity, in ReadBarrierTable()
Dspace_bitmap.cc35 size_t SpaceBitmap<kAlignment>::ComputeBitmapSize(uint64_t capacity) { in ComputeBitmapSize() argument
42 return (RoundUp(capacity, kBytesCoveredPerWord) / kBytesCoveredPerWord) * sizeof(intptr_t); in ComputeBitmapSize()
/art/compiler/utils/
Dassembler.h277 static uint8_t* ComputeLimit(uint8_t* data, size_t capacity) { in ComputeLimit() argument
278 return data + capacity - kMinimumGap; in ComputeLimit()
340 void ReserveCFIStream(size_t capacity) { in ReserveCFIStream() argument
341 opcodes_.reserve(capacity); in ReserveCFIStream()
/art/runtime/
Dindirect_reference_table.h188 IrtIterator(IrtEntry* table, size_t i, size_t capacity) REQUIRES_SHARED(Locks::mutator_lock_) in IrtIterator() argument
189 : table_(table), i_(i), capacity_(capacity) { in IrtIterator()
Djni_env_ext.cc132 void JNIEnvExt::PushFrame(int capacity) { in PushFrame() argument
133 DCHECK_GE(locals_.FreeCapacity(), static_cast<size_t>(capacity)); in PushFrame()

12