Home
last modified time | relevance | path

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

12

/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, kPageSize); 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_static_test.cc29 size_t capacity) { in CreateDlMallocSpace() argument
31 name, initial_size, growth_limit, capacity, /*can_move_objects=*/ false); in CreateDlMallocSpace()
Ddlmalloc_space_random_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()
Ddlmalloc_space.cc69 size_t capacity, in CreateFromMemMap() argument
80 if (capacity - starting_size > 0) { in CreateFromMemMap()
81 CheckedCall(mprotect, name.c_str(), end, capacity - starting_size, PROT_NONE); in CreateFromMemMap()
94 begin + capacity, growth_limit, in CreateFromMemMap()
104 begin + capacity, in CreateFromMemMap()
114 size_t capacity, in Create() argument
122 << " capacity=" << PrettySize(capacity); in Create()
130 MemMap mem_map = CreateMemMap(name, starting_size, &initial_size, &growth_limit, &capacity); in Create()
133 << PrettySize(capacity); in Create()
141 capacity, in Create()
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 …]
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, kPageSize); in Create()
31 capacity, in Create()
37 << PrettySize(capacity) << " with message " << error_msg; in Create()
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()
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()
Ddlmalloc_space.h42 size_t capacity,
52 size_t capacity,
Drosalloc_space.h44 size_t capacity,
52 size_t capacity,
Dregion_space.cc51 size_t capacity, in CreateMemMap() argument
53 CHECK_ALIGNED(capacity, kRegionSize); in CreateMemMap()
61 capacity + kRegionSize, in CreateMemMap()
75 << PrettySize(capacity) << " with message " << error_msg; in CreateMemMap()
80 CHECK_EQ(mem_map.Size(), capacity + kRegionSize); in CreateMemMap()
86 mem_map.SetSize(capacity); in CreateMemMap()
93 CHECK_EQ(mem_map.Size(), capacity); in CreateMemMap()
Dspace_create_test.cc37 size_t capacity) { in CreateSpace() argument
43 capacity, in CreateSpace()
50 capacity, in CreateSpace()
/art/test/979-const-method-handle/
Dexpected.txt16 Stack: capacity was 10
17 Stack: capacity is 2
/art/runtime/jit/
Djit_memory_region.cc60 const size_t capacity = max_capacity_; in Initialize() local
61 const size_t data_capacity = capacity / kCodeAndDataCapacityDivider; in Initialize()
62 const size_t exec_capacity = capacity - data_capacity; in Initialize()
70 mem_fd = unique_fd(CreateZygoteMemory(capacity, error_msg)); in Initialize()
87 } else if (ftruncate(mem_fd, capacity) != 0) { in Initialize()
170 oss << "Failed to create read write cache: " << error_str << " size=" << capacity; in Initialize()
192 oss << "Failed to create read execute code cache: " << error_str << " size=" << capacity; in Initialize()
506 int JitMemoryRegion::CreateZygoteMemory(size_t capacity, std::string* error_msg) { in CreateZygoteMemory() argument
524 if (ftruncate(fd, capacity) != 0) { in CreateZygoteMemory()
537 PaletteStatus status = PaletteAshmemCreateRegion(kRegionName, capacity, &fd); in CreateZygoteMemory()
[all …]
Djit.cc648 uint64_t capacity = page_end - page_start; in NotifyZygoteCompilationDone() local
649 memcpy(zygote_mapping_methods_.Begin() + offset, page_start, capacity); in NotifyZygoteCompilationDone()
650 offset += capacity; in NotifyZygoteCompilationDone()
707 uint64_t capacity = page_end - page_start; in NotifyZygoteCompilationDone() local
708 if (memcmp(child_mapping_methods.Begin() + offset, page_start, capacity) != 0) { in NotifyZygoteCompilationDone()
714 offset += capacity; in NotifyZygoteCompilationDone()
735 uint64_t capacity = page_end - page_start; in NotifyZygoteCompilationDone() local
737 capacity, in NotifyZygoteCompilationDone()
738 capacity, in NotifyZygoteCompilationDone()
745 offset += capacity; in NotifyZygoteCompilationDone()
[all …]
/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/
Dcard_table.cc64 size_t capacity = heap_capacity / kCardSize; in Create() local
68 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()
224 AtomicStack(const std::string& name, size_t growth_limit, size_t capacity) in AtomicStack() argument
230 capacity_(capacity), in AtomicStack()
/art/compiler/utils/
Dassembler.h276 static uint8_t* ComputeLimit(uint8_t* data, size_t capacity) { in ComputeLimit() argument
277 return data + capacity - kMinimumGap; in ComputeLimit()
339 void ReserveCFIStream(size_t capacity) { in ReserveCFIStream() argument
340 opcodes_.reserve(capacity); in ReserveCFIStream()
/art/test/979-const-method-handle/src/
DMain.java243 System.out.println("Stack: capacity was " + stack.capacity()); in main()
245 System.out.println("Stack: capacity is " + stack.capacity()); in main()

12