/art/libartbase/base/ |
D | arena_allocator_test.cc | 161 const size_t new_size = ArenaAllocator::kAlignment * 3; in TEST_F() local 162 void* realloc_allocation = allocator.Realloc(original_allocation, original_size, new_size); in TEST_F() 174 const size_t new_size = ArenaAllocator::kAlignment * 2 + (ArenaAllocator::kAlignment / 2); in TEST_F() local 175 void* realloc_allocation = allocator.Realloc(original_allocation, original_size, new_size); in TEST_F() 187 const size_t new_size = ArenaAllocator::kAlignment * 4; in TEST_F() local 188 void* realloc_allocation = allocator.Realloc(original_allocation, original_size, new_size); in TEST_F() 200 const size_t new_size = ArenaAllocator::kAlignment * 3; in TEST_F() local 201 void* realloc_allocation = allocator.Realloc(original_allocation, original_size, new_size); in TEST_F() 217 const size_t new_size = arena_allocator::kArenaDefaultSize + ArenaAllocator::kAlignment * 2; in TEST_F() local 218 void* realloc_allocation = allocator.Realloc(original_allocation, original_size, new_size); in TEST_F() [all …]
|
D | bit_vector.cc | 352 uint32_t new_size = BitsToWords(idx + 1); in EnsureSize() local 353 DCHECK_GT(new_size, storage_size_); in EnsureSize() 355 static_cast<uint32_t*>(allocator_->Alloc(new_size * kWordBytes)); in EnsureSize() 358 memset(&new_storage[storage_size_], 0, (new_size - storage_size_) * kWordBytes); in EnsureSize() 366 storage_size_ = new_size; in EnsureSize()
|
D | arena_allocator.h | 308 size_t new_size, 310 DCHECK_GE(new_size, ptr_size); 319 const size_t aligned_new_size = RoundUp(new_size, kAlignment); 330 auto* new_ptr = Alloc(new_size, kind); // Note: Alloc will take care of aligning new_size.
|
D | mem_map.cc | 770 size_t new_size = new_end - reinterpret_cast<uint8_t*>(begin_); in RemapAtEnd() local 772 DCHECK_LE(begin_ + new_size, reinterpret_cast<uint8_t*>(base_begin_) + new_base_size); in RemapAtEnd() 807 size_ = new_size; in RemapAtEnd() 1055 void MemMap::SetSize(size_t new_size) { in SetSize() argument 1056 CHECK_LE(new_size, size_); in SetSize() 1057 size_t new_base_size = RoundUp(new_size + static_cast<size_t>(PointerDiff(Begin(), BaseBegin())), in SetSize() 1060 size_ = new_size; in SetSize() 1073 size_ = new_size; in SetSize()
|
D | hash_set.h | 775 void Resize(size_t new_size) { in Resize() argument 776 if (new_size < kMinBuckets) { in Resize() 777 new_size = kMinBuckets; in Resize() 779 DCHECK_GE(new_size, size()); in Resize() 784 AllocateStorage(new_size); in Resize()
|
D | mem_map.h | 268 void SetSize(size_t new_size);
|
/art/runtime/ |
D | linear_alloc-inl.h | 64 size_t new_size, in Realloc() argument 79 new_size += sizeof(TrackingHeader); in Realloc() 80 void* ret = allocator_.Realloc(ptr, old_size, new_size); in Realloc() 81 new (ret) TrackingHeader(new_size, kind); in Realloc() 82 SetFirstObject(ret, new_size); in Realloc() 85 return allocator_.Realloc(ptr, old_size, new_size); in Realloc()
|
D | linear_alloc.h | 85 void* Realloc(Thread* self, void* ptr, size_t old_size, size_t new_size, LinearAllocKind kind)
|
/art/test/1959-redefine-object-instrument/ |
D | fake_redef_object.cc | 84 size_t new_size; in RedefineObjectHook() local 85 *new_class_data = writer.CreateImage(&allocator, &new_size); in RedefineObjectHook() 86 if (new_size > std::numeric_limits<jint>::max()) { in RedefineObjectHook() 92 *new_class_data_len = static_cast<jint>(new_size); in RedefineObjectHook()
|
/art/test/980-redefine-object/ |
D | redef_object.cc | 97 size_t new_size; in RedefineObjectHook() local 98 *new_class_data = writer.CreateImage(&allocator, &new_size); in RedefineObjectHook() 99 if (new_size > std::numeric_limits<jint>::max()) { in RedefineObjectHook() 105 *new_class_data_len = static_cast<jint>(new_size); in RedefineObjectHook()
|
/art/libdexfile/external/ |
D | dex_file_ext.cc | 145 size_t* _Nullable new_size, in ADexFile_create() argument 151 if (new_size != nullptr) { in ADexFile_create() 152 *new_size = sizeof(art::DexFile::Header); in ADexFile_create() 159 if (new_size != nullptr) { in ADexFile_create() 160 *new_size = header->header_size_; in ADexFile_create() 186 if (new_size != nullptr) { in ADexFile_create() 187 *new_size = full_size; in ADexFile_create()
|
/art/libdexfile/external/include/art_api/ |
D | dex_file_support.h | 96 size_t* new_size, in Create() argument 101 ADexFile_Error error = g_ADexFile_create(address, size, new_size, location, &adex); in Create()
|
D | dex_file_external.h | 71 size_t* _Nullable new_size,
|
/art/compiler/utils/ |
D | assembler.h | 116 void Resize(size_t new_size) { in Resize() argument 117 if (new_size > Capacity()) { in Resize() 118 ExtendCapacity(new_size); in Resize() 120 cursor_ = contents_ + new_size; in Resize()
|
/art/runtime/gc/space/ |
D | dlmalloc_space.cc | 360 void DlMallocSpace::SetFootprintLimit(size_t new_size) { in SetFootprintLimit() argument 362 VLOG(heap) << "DlMallocSpace::SetFootprintLimit " << PrettySize(new_size); in SetFootprintLimit() 366 if (new_size < current_space_size) { in SetFootprintLimit() 368 new_size = current_space_size; in SetFootprintLimit() 370 mspace_set_footprint_limit(mspace_, new_size); in SetFootprintLimit()
|
D | rosalloc_space.cc | 345 void RosAllocSpace::SetFootprintLimit(size_t new_size) { in SetFootprintLimit() argument 347 VLOG(heap) << "RosAllocSpace::SetFootprintLimit " << PrettySize(new_size); in SetFootprintLimit() 351 if (new_size < current_space_size) { in SetFootprintLimit() 353 new_size = current_space_size; in SetFootprintLimit() 355 rosalloc_->SetFootprintLimit(new_size); in SetFootprintLimit()
|
/art/runtime/gc/accounting/ |
D | space_bitmap.cc | 104 size_t new_size = OffsetToIndex(new_end - heap_begin_) * sizeof(intptr_t); in SetHeapLimit() local 105 if (new_size < bitmap_size_) { in SetHeapLimit() 106 bitmap_size_ = new_size; in SetHeapLimit()
|
/art/tools/jvmti-agents/simple-force-redefine/ |
D | forceredefine.cc | 161 size_t new_size; in CbClassFileLoadHook() local 162 *newClassData = writer.CreateImage(&allocator, &new_size); in CbClassFileLoadHook() 163 *newClassDataLen = new_size; in CbClassFileLoadHook()
|
/art/openjdkjvmti/ |
D | ti_heap.h | 92 static jvmtiError JNICALL ChangeArraySize(jvmtiEnv* env, jobject arr, jsize new_size);
|
D | ti_heap.cc | 1895 jvmtiError HeapExtensions::ChangeArraySize(jvmtiEnv* env, jobject arr, jsize new_size) { in ChangeArraySize() argument 1911 if (new_size < 0) { in ChangeArraySize() 1921 art::mirror::ObjectArray<art::mirror::Object>::Alloc(self, old_arr->GetClass(), new_size)); in ChangeArraySize() 1925 new_arr.Assign(art::mirror::Array::CopyOf(old_arr, self, new_size)); in ChangeArraySize() 1930 << " (length: " << new_size << ") due to OOME. Error was: " in ChangeArraySize() 1946 int32_t size = std::min(old_arr->GetLength(), new_size); in ChangeArraySize()
|
/art/test/1974-resize-array/ |
D | resize_array.cc | 115 jint new_size) { in Java_art_Test1974_ResizeArray() argument 124 JvmtiErrorToException(env, jvmti_env, change_array_size(jvmti_env, arr, new_size)); in Java_art_Test1974_ResizeArray()
|
/art/runtime/jni/ |
D | local_reference_table.cc | 193 bool LocalReferenceTable::Resize(size_t new_size, std::string* error_msg) { in Resize() argument 196 DCHECK_GT(new_size, max_entries_); in Resize() 197 DCHECK_LE(new_size, kMaxTableSizeInBytes / sizeof(LrtEntry)); in Resize() 198 size_t required_size = RoundUpToPowerOfTwo(new_size); in Resize()
|
D | local_reference_table.h | 463 bool Resize(size_t new_size, std::string* error_msg);
|
/art/runtime/gc/collector/ |
D | semi_space.cc | 360 void SemiSpace::ResizeMarkStack(size_t new_size) { in ResizeMarkStack() argument 362 CHECK_LE(mark_stack_->Size(), new_size); in ResizeMarkStack() 363 mark_stack_->Resize(new_size); in ResizeMarkStack()
|
D | semi_space.h | 182 void ResizeMarkStack(size_t new_size) REQUIRES_SHARED(Locks::mutator_lock_);
|