/art/test/2036-jni-filechannel/ |
D | jni_filechannel.cc | 24 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/ |
D | malloc_space.cc | 86 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 …]
|
D | dlmalloc_space_random_test.cc | 29 size_t capacity) { in CreateDlMallocSpace() argument 31 name, initial_size, growth_limit, capacity, /*can_move_objects=*/ false); in CreateDlMallocSpace()
|
D | dlmalloc_space_static_test.cc | 29 size_t capacity) { in CreateDlMallocSpace() argument 31 name, initial_size, growth_limit, capacity, /*can_move_objects=*/ false); in CreateDlMallocSpace()
|
D | rosalloc_space_random_test.cc | 29 size_t capacity) { in CreateRosAllocSpace() argument 33 capacity, in CreateRosAllocSpace()
|
D | rosalloc_space_static_test.cc | 29 size_t capacity) { in CreateRosAllocSpace() argument 32 capacity, in CreateRosAllocSpace()
|
D | rosalloc_space.cc | 76 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 …]
|
D | dlmalloc_space.cc | 119 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()
|
D | space.cc | 83 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()
|
D | bump_pointer_space.cc | 27 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()
|
D | space_test.h | 129 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()
|
D | large_object_space_test.cc | 41 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()
|
D | large_object_space.h | 119 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_);
|
D | dlmalloc_space.h | 42 size_t capacity, 52 size_t capacity,
|
/art/runtime/jit/ |
D | jit_memory_region.cc | 61 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 …]
|
D | jit.cc | 537 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/ |
D | jvmti_weak_table-inl.h | 258 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/ |
D | expected-stdout.txt | 16 Stack: capacity was 10 17 Stack: capacity is 2
|
/art/runtime/ |
D | handle_scope.h | 77 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()
|
D | indirect_reference_table.cc | 329 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/ |
D | card_table.cc | 59 size_t capacity = heap_capacity / kCardSize; in Create() local 63 capacity + 256, in Create()
|
D | read_barrier_table.h | 38 size_t capacity = static_cast<size_t>(kHeapCapacity / kRegionSize); in ReadBarrierTable() local 43 capacity, in ReadBarrierTable()
|
D | atomic_stack.h | 66 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/ |
D | assembler.h | 277 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/ |
D | common_compiler_test.cc | 63 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()
|