Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 25 of 33) sorted by relevance

12

/art/libartbase/base/
Darena_allocator_test.cc161 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 …]
Dbit_vector.cc357 uint32_t new_size = BitsToWords(idx + 1); in EnsureSize() local
358 DCHECK_GT(new_size, storage_size_); in EnsureSize()
360 static_cast<uint32_t*>(allocator_->Alloc(new_size * kWordBytes)); in EnsureSize()
363 memset(&new_storage[storage_size_], 0, (new_size - storage_size_) * kWordBytes); in EnsureSize()
371 storage_size_ = new_size; in EnsureSize()
Darena_allocator.h308 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.
Dmem_map.cc737 size_t new_size = new_end - reinterpret_cast<uint8_t*>(begin_); in RemapAtEnd() local
739 DCHECK_LE(begin_ + new_size, reinterpret_cast<uint8_t*>(base_begin_) + new_base_size); in RemapAtEnd()
774 size_ = new_size; in RemapAtEnd()
1017 void MemMap::SetSize(size_t new_size) { in SetSize() argument
1018 CHECK_LE(new_size, size_); in SetSize()
1019 size_t new_base_size = RoundUp(new_size + static_cast<size_t>(PointerDiff(Begin(), BaseBegin())), in SetSize()
1022 size_ = new_size; in SetSize()
1035 size_ = new_size; in SetSize()
Dhash_set.h764 void Resize(size_t new_size) { in Resize() argument
765 if (new_size < kMinBuckets) { in Resize()
766 new_size = kMinBuckets; in Resize()
768 DCHECK_GE(new_size, size()); in Resize()
773 AllocateStorage(new_size); in Resize()
Dmem_map.h249 void SetSize(size_t new_size);
/art/test/1959-redefine-object-instrument/
Dfake_redef_object.cc84 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/
Dredef_object.cc97 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/runtime/
Dlinear_alloc.cc26 void* LinearAlloc::Realloc(Thread* self, void* ptr, size_t old_size, size_t new_size) { in Realloc() argument
28 return allocator_.Realloc(ptr, old_size, new_size); in Realloc()
Dindirect_reference_table.cc274 bool IndirectReferenceTable::Resize(size_t new_size, std::string* error_msg) { in Resize() argument
275 CHECK_GT(new_size, max_entries_); in Resize()
278 if (new_size > kMaxEntries) { in Resize()
279 *error_msg = android::base::StringPrintf("Requested size exceeds maximum: %zu", new_size); in Resize()
284 const size_t table_bytes = RoundUp(new_size * sizeof(IrtEntry), kPageSize); in Resize()
299 DCHECK_GE(real_new_size, new_size); in Resize()
Dlinear_alloc.h36 void* Realloc(Thread* self, void* ptr, size_t old_size, size_t new_size) REQUIRES(!lock_);
Dindirect_reference_table.h434 bool Resize(size_t new_size, std::string* error_msg);
/art/libdexfile/external/
Ddex_file_ext.cc144 size_t* _Nullable new_size, in ADexFile_create() argument
150 if (new_size != nullptr) { in ADexFile_create()
151 *new_size = sizeof(art::DexFile::Header); in ADexFile_create()
175 if (new_size != nullptr) { in ADexFile_create()
176 *new_size = file_size; in ADexFile_create()
/art/libdexfile/external/include/art_api/
Ddex_file_support.h98 size_t* new_size, in Create() argument
103 ADexFile_Error error = g_ADexFile_create(address, size, new_size, location, &adex); in Create()
Ddex_file_external.h70 size_t* _Nullable new_size,
/art/runtime/gc/space/
Ddlmalloc_space.cc310 void DlMallocSpace::SetFootprintLimit(size_t new_size) { in SetFootprintLimit() argument
312 VLOG(heap) << "DlMallocSpace::SetFootprintLimit " << PrettySize(new_size); in SetFootprintLimit()
316 if (new_size < current_space_size) { in SetFootprintLimit()
318 new_size = current_space_size; in SetFootprintLimit()
320 mspace_set_footprint_limit(mspace_, new_size); in SetFootprintLimit()
Drosalloc_space.cc345 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/compiler/utils/
Dassembler.h116 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/accounting/
Dspace_bitmap.cc101 size_t new_size = OffsetToIndex(new_end - heap_begin_) * sizeof(intptr_t); in SetHeapLimit() local
102 if (new_size < bitmap_size_) { in SetHeapLimit()
103 bitmap_size_ = new_size; in SetHeapLimit()
/art/tools/jvmti-agents/simple-force-redefine/
Dforceredefine.cc163 size_t new_size; in CbClassFileLoadHook() local
164 *newClassData = writer.CreateImage(&allocator, &new_size); in CbClassFileLoadHook()
165 *newClassDataLen = new_size; in CbClassFileLoadHook()
/art/openjdkjvmti/
Dti_heap.h92 static jvmtiError JNICALL ChangeArraySize(jvmtiEnv* env, jobject arr, jsize new_size);
Dti_heap.cc1886 jvmtiError HeapExtensions::ChangeArraySize(jvmtiEnv* env, jobject arr, jsize new_size) { in ChangeArraySize() argument
1902 if (new_size < 0) { in ChangeArraySize()
1912 art::mirror::ObjectArray<art::mirror::Object>::Alloc(self, old_arr->GetClass(), new_size)); in ChangeArraySize()
1916 new_arr.Assign(art::mirror::Array::CopyOf(old_arr, self, new_size)); in ChangeArraySize()
1921 << " (length: " << new_size << ") due to OOME. Error was: " in ChangeArraySize()
1937 int32_t size = std::min(old_arr->GetLength(), new_size); in ChangeArraySize()
/art/test/1974-resize-array/
Dresize_array.cc115 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/gc/collector/
Dsemi_space.cc361 void SemiSpace::ResizeMarkStack(size_t new_size) { in ResizeMarkStack() argument
363 CHECK_LE(mark_stack_->Size(), new_size); in ResizeMarkStack()
364 mark_stack_->Resize(new_size); in ResizeMarkStack()
Dsemi_space.h182 void ResizeMarkStack(size_t new_size) REQUIRES_SHARED(Locks::mutator_lock_);

12