Home
last modified time | relevance | path

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

123

/art/test/2036-jni-filechannel/
Djni_filechannel.cc24 jlong capacity = env->GetDirectBufferCapacity(buffer); in Java_Main_checkBufferCapacity() local
25 const char* status = (capacity == expectedCapacity) ? "PASS" : "FAIL"; in Java_Main_checkBufferCapacity()
27 << " got " << capacity in Java_Main_checkBufferCapacity()
/art/runtime/gc/space/
Dmalloc_space.cc86 size_t* capacity) { in CreateMemMap() argument
97 if (*growth_limit > *capacity) { in CreateMemMap()
100 << PrettySize(*capacity) << ")"; in CreateMemMap()
106 *capacity = RoundUp(*capacity, gPageSize); in CreateMemMap()
110 *capacity, in CreateMemMap()
116 << PrettySize(*capacity) << ": " << error_msg; in CreateMemMap()
197 const size_t capacity = NonGrowthLimitCapacity() - size; in CreateZygoteSpace() local
209 VLOG(heap) << "Capacity " << PrettySize(capacity); in CreateZygoteSpace()
216 CreateAllocator(End(), starting_size_, initial_size_, capacity, low_memory_mode); in CreateZygoteSpace()
219 if (capacity > initial_size_) { in CreateZygoteSpace()
[all …]
Ddlmalloc_space_random_test.cc29 size_t capacity) { in CreateDlMallocSpace() argument
31 name, initial_size, growth_limit, capacity, /*can_move_objects=*/ false); in CreateDlMallocSpace()
Ddlmalloc_space_static_test.cc29 size_t capacity) { in CreateDlMallocSpace() argument
31 name, initial_size, growth_limit, capacity, /*can_move_objects=*/ false); in CreateDlMallocSpace()
Drosalloc_space_random_test.cc29 size_t capacity) { in CreateRosAllocSpace() argument
33 capacity, in CreateRosAllocSpace()
Drosalloc_space_static_test.cc29 size_t capacity) { in CreateRosAllocSpace() argument
32 capacity, in CreateRosAllocSpace()
Drosalloc_space.cc76 size_t capacity, in CreateFromMemMap() argument
86 capacity, in CreateFromMemMap()
96 if (capacity - starting_size > 0) { in CreateFromMemMap()
97 CheckedCall(mprotect, name.c_str(), end, capacity - starting_size, PROT_NONE); in CreateFromMemMap()
112 begin + capacity, in CreateFromMemMap()
124 begin + capacity, in CreateFromMemMap()
139 size_t capacity, in Create() argument
148 << " capacity=" << PrettySize(capacity); in Create()
156 MemMap mem_map = CreateMemMap(name, starting_size, &initial_size, &growth_limit, &capacity); in Create()
159 << PrettySize(capacity); in Create()
[all …]
Ddlmalloc_space.cc119 size_t capacity, in CreateFromMemMap() argument
130 if (capacity - starting_size > 0) { in CreateFromMemMap()
131 CheckedCall(mprotect, name.c_str(), end, capacity - starting_size, PROT_NONE); in CreateFromMemMap()
144 begin + capacity, growth_limit, in CreateFromMemMap()
154 begin + capacity, in CreateFromMemMap()
164 size_t capacity, in Create() argument
172 << " capacity=" << PrettySize(capacity); in Create()
180 MemMap mem_map = CreateMemMap(name, starting_size, &initial_size, &growth_limit, &capacity); in Create()
183 << PrettySize(capacity); in Create()
191 capacity, in Create()
Dspace.cc83 const size_t capacity = static_cast<size_t>(std::numeric_limits<uint32_t>::max()); in DiscontinuousSpace() local
84 live_bitmap_ = accounting::LargeObjectBitmap::Create("large live objects", nullptr, capacity); in DiscontinuousSpace()
86 mark_bitmap_ = accounting::LargeObjectBitmap::Create("large marked objects", nullptr, capacity); in DiscontinuousSpace()
Dbump_pointer_space.cc27 BumpPointerSpace* BumpPointerSpace::Create(const std::string& name, size_t capacity) { in Create() argument
28 capacity = RoundUp(capacity, gPageSize); in Create()
31 capacity, in Create()
37 << PrettySize(capacity) << " with message " << error_msg; in Create()
Dspace_test.h129 size_t capacity);
327 size_t capacity = 16 * MB; in SizeFootPrintGrowthLimitAndTrimDriver() local
328 MallocSpace* space(create_space("test", initial_size, growth_limit, capacity)); in SizeFootPrintGrowthLimitAndTrimDriver()
333 EXPECT_EQ(space->NonGrowthLimitCapacity(), capacity); in SizeFootPrintGrowthLimitAndTrimDriver()
344 EXPECT_EQ(space->Capacity(), capacity); in SizeFootPrintGrowthLimitAndTrimDriver()
345 SizeFootPrintGrowthLimitAndTrimBody(space, object_size, 3, capacity); in SizeFootPrintGrowthLimitAndTrimDriver()
Dlarge_object_space_test.cc41 const size_t capacity = 128 * MB; in LargeObjectTest() local
45 los = space::FreeListSpace::Create("large object space", capacity); in LargeObjectTest()
51 CHECK_LE(static_cast<uintptr_t>(los->GetLiveBitmap()->HeapBegin() + capacity), in LargeObjectTest()
Dlarge_object_space.h119 virtual void ClampGrowthLimit(size_t capacity) = 0;
179 void ClampGrowthLimit(size_t capacity ATTRIBUTE_UNUSED) override {} in ClampGrowthLimit()
202 static FreeListSpace* Create(const std::string& name, size_t capacity);
213 void ClampGrowthLimit(size_t capacity) override REQUIRES(!lock_);
Ddlmalloc_space.h42 size_t capacity,
52 size_t capacity,
/art/runtime/jit/
Djit_memory_region.cc61 const size_t capacity = max_capacity_; in Initialize() local
62 const size_t data_capacity = capacity / kCodeAndDataCapacityDivider; in Initialize()
63 const size_t exec_capacity = capacity - data_capacity; in Initialize()
79 mem_fd = unique_fd(CreateZygoteMemory(capacity, error_msg)); in Initialize()
96 } else if (ftruncate(mem_fd, capacity) != 0) { in Initialize()
230 oss << "Failed to create read write cache: " << error_str << " size=" << capacity; in Initialize()
249 oss << "Failed to create read execute code cache: " << error_str << " size=" << capacity; in Initialize()
503 int JitMemoryRegion::CreateZygoteMemory(size_t capacity, std::string* error_msg) { in CreateZygoteMemory() argument
521 if (ftruncate(fd, capacity) != 0) { in CreateZygoteMemory()
534 palette_status_t status = PaletteAshmemCreateRegion(kRegionName, capacity, &fd); in CreateZygoteMemory()
[all …]
Djit.cc537 uint64_t capacity = page_end - page_start; in NotifyZygoteCompilationDone() local
538 memcpy(zygote_mapping_methods_.Begin() + offset, page_start, capacity); in NotifyZygoteCompilationDone()
539 offset += capacity; in NotifyZygoteCompilationDone()
596 uint64_t capacity = page_end - page_start; in NotifyZygoteCompilationDone() local
597 if (memcmp(child_mapping_methods.Begin() + offset, page_start, capacity) != 0) { in NotifyZygoteCompilationDone()
603 offset += capacity; in NotifyZygoteCompilationDone()
624 uint64_t capacity = page_end - page_start; in NotifyZygoteCompilationDone() local
626 capacity, in NotifyZygoteCompilationDone()
627 capacity, in NotifyZygoteCompilationDone()
634 offset += capacity; in NotifyZygoteCompilationDone()
[all …]
/art/openjdkjvmti/
Djvmti_weak_table-inl.h258 capacity(reserve) {
263 allocator.deallocate(data, capacity);
264 capacity = 0;
274 capacity = 0;
280 CHECK_GT(new_capacity, capacity);
289 allocator.deallocate(old, capacity);
290 capacity = new_capacity;
294 if (size == capacity) {
295 size_t new_capacity = 2 * capacity + 1;
304 size_t capacity;
/art/test/979-const-method-handle/
Dexpected-stdout.txt16 Stack: capacity was 10
17 Stack: capacity is 2
/art/runtime/
Dhandle_scope.h77 BaseHandleScope(BaseHandleScope* link, uint32_t capacity) in BaseHandleScope() argument
79 capacity_(capacity) {} in BaseHandleScope()
171 explicit HandleScope(size_t capacity) : HandleScope(nullptr, capacity) {} in HandleScope() argument
173 HandleScope(BaseHandleScope* link, uint32_t capacity) in HandleScope() argument
174 : BaseHandleScope(link, capacity) { in HandleScope()
177 DCHECK_NE(capacity, 0u); in HandleScope()
Dindirect_reference_table.cc329 for (size_t i = 0, capacity = Capacity(); i != capacity; ++i) { in VisitRoots() local
342 for (size_t i = 0, capacity = Capacity(); i != capacity; ++i) { in SweepJniWeakGlobals() local
/art/runtime/gc/accounting/
Dcard_table.cc59 size_t capacity = heap_capacity / kCardSize; in Create() local
63 capacity + 256, in Create()
Dread_barrier_table.h38 size_t capacity = static_cast<size_t>(kHeapCapacity / kRegionSize); in ReadBarrierTable() local
43 capacity, in ReadBarrierTable()
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()
261 AtomicStack(const std::string& name, size_t growth_limit, size_t capacity) in AtomicStack() argument
267 capacity_(capacity), in AtomicStack()
/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/compiler/
Dcommon_compiler_test.cc63 const uint32_t capacity = RoundUp(code_offset + code_size, page_size); in CodeAndMetadata() local
68 int err = ftruncate(mem_fd, capacity); in CodeAndMetadata()
73 rw_map_ = MemMap::MapFile(capacity, in CodeAndMetadata()
101 rx_map_ = MemMap::MapFile(capacity, in CodeAndMetadata()

123