Home
last modified time | relevance | path

Searched refs:Alloc (Results 1 – 25 of 87) sorted by relevance

1234

/art/compiler/utils/
Darena_bit_vector.cc28 virtual void* Alloc(size_t size) { in Alloc() function in art::ArenaBitVectorAllocator
29 return arena_->Alloc(size, kArenaAllocGrowableBitMap); in Alloc()
35 return arena->Alloc(sizeof(ArenaBitVectorAllocator), kArenaAllocGrowableBitMap); in operator new()
Dscoped_arena_allocator.h66 void* Alloc(size_t bytes, ArenaAllocKind kind) ALWAYS_INLINE { in Alloc() function
107 void* addr = arena_stack->Alloc(sizeof(ScopedArenaAllocator), kArenaAllocMisc); in Create()
118 void* Alloc(size_t bytes, ArenaAllocKind kind) ALWAYS_INLINE { in Alloc() function
120 return arena_stack_->Alloc(bytes, kind); in Alloc()
Darena_bit_vector.h62 return arena->Alloc(sizeof(ArenaBitVector), kArenaAllocGrowableBitMap); in new()
65 return arena->Alloc(sizeof(ArenaBitVector), kArenaAllocGrowableBitMap); in new()
Dgrowable_array.h89 elem_list_ = static_cast<T*>(arena_->Alloc(sizeof(T) * init_length, in arena_()
103 T* new_array = static_cast<T*>(arena_->Alloc(sizeof(T) * target_length, in Resize()
203 return arena->Alloc(sizeof(GrowableArray<T>), kArenaAllocGrowableArray); in new()
Dallocation.h29 return allocator->Alloc(size, kArenaAllocMisc); in new()
/art/runtime/mirror/
Dstring.cc80 String* string = Alloc(self, utf16_length); in AllocFromUtf16()
106 String* string = Alloc(self, utf16_length); in AllocFromModifiedUtf8()
117 String* String::Alloc(Thread* self, int32_t utf16_length) { in Alloc() function in art::mirror::String
119 Handle<CharArray> array(hs.NewHandle(CharArray::Alloc(self, utf16_length))); in Alloc()
123 return Alloc(self, array); in Alloc()
126 String* String::Alloc(Thread* self, Handle<CharArray> array) { in Alloc() function in art::mirror::String
Dobject_array-inl.h35 inline ObjectArray<T>* ObjectArray<T>::Alloc(Thread* self, Class* object_array_class, in Alloc() function
37 Array* array = Array::Alloc<true>(self, object_array_class, length, in Alloc()
47 inline ObjectArray<T>* ObjectArray<T>::Alloc(Thread* self, Class* object_array_class, in Alloc() function
49 return Alloc(self, object_array_class, length, in Alloc()
253 ObjectArray<T>* new_array = Alloc(self, GetClass(), new_length, allocator_type); in CopyOf()
Dobject_array.h33 static ObjectArray<T>* Alloc(Thread* self, Class* object_array_class, int32_t length,
37 static ObjectArray<T>* Alloc(Thread* self, Class* object_array_class, int32_t length)
Dobject_test.cc162 hs.NewHandle(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), in TEST_F()
168 a.Assign(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), in TEST_F()
174 a.Assign(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), in TEST_F()
185 hs.NewHandle(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), in TEST_F()
191 a.Assign(Array::Alloc<true>(soa.Self(), c, 2, c->GetComponentSize(), in TEST_F()
197 a.Assign(Array::Alloc<true>(soa.Self(), c, 2, c->GetComponentSize(), in TEST_F()
203 a.Assign(Array::Alloc<true>(soa.Self(), c, 2, c->GetComponentSize(), in TEST_F()
214 ArrayT* a = ArrayT::Alloc(soa.Self(), 2); in TestPrimitiveArray()
287 Handle<IntArray> dims(hs.NewHandle(IntArray::Alloc(soa.Self(), 1))); in TEST_F()
300 dims.Assign(IntArray::Alloc(soa.Self(), 2)); in TEST_F()
[all …]
Dstring.h146 static String* Alloc(Thread* self, int32_t utf16_length)
149 static String* Alloc(Thread* self, Handle<CharArray> array)
/art/runtime/gc/space/
Dspace_test.h63 mirror::Object* Alloc(space::MallocSpace* alloc_space, Thread* self, size_t bytes, in Alloc() function
68 mirror::Object* obj = alloc_space->Alloc(self, bytes, bytes_allocated, usable_size); in Alloc()
185 hs.NewHandle(Alloc(space, self, 1 * MB, &ptr1_bytes_allocated, &ptr1_usable_size))); in ZygoteSpaceTestBody()
192 mirror::Object* ptr2 = Alloc(space, self, 8 * MB, &dummy, nullptr); in ZygoteSpaceTestBody()
205 mirror::Object* ptr4 = space->Alloc(self, 8 * MB, &dummy, nullptr); in ZygoteSpaceTestBody()
233 EXPECT_TRUE(space->Alloc(self, 1U * MB, &dummy, nullptr) != nullptr); in ZygoteSpaceTestBody()
250 ptr1.Assign(Alloc(space, self, 1 * MB, &ptr1_bytes_allocated, &ptr1_usable_size)); in ZygoteSpaceTestBody()
257 ptr2 = Alloc(space, self, 8 * MB, &dummy, nullptr); in ZygoteSpaceTestBody()
288 hs.NewHandle(Alloc(space, self, 1 * MB, &ptr1_bytes_allocated, &ptr1_usable_size))); in AllocAndFreeTestBody()
295 mirror::Object* ptr2 = Alloc(space, self, 8 * MB, &dummy, nullptr); in AllocAndFreeTestBody()
[all …]
Dlarge_object_space_test.cc52 mirror::Object* obj = los->Alloc(Thread::Current(), request_size, &allocation_size, in LargeObjectTest()
88 mirror::Object* obj = los->Alloc(Thread::Current(), 100 * MB, &bytes_allocated, nullptr); in LargeObjectTest()
106 mirror::Object* ptr = los_->Alloc(self, size_, &alloc_size, nullptr); in Run()
Dvalgrind_malloc_space-inl.h50 mirror::Object* ValgrindMallocSpace<S, A>::Alloc(Thread* self, size_t num_bytes, in Alloc() function
53 void* obj_with_rdz = S::Alloc(self, num_bytes + 2 * kValgrindRedZoneBytes, bytes_allocated, in Alloc()
/art/runtime/
Dclass_linker-inl.h160 return mirror::ObjectArray<T>::Alloc(self, GetClassRoot(kObjectArrayClass), length); in AllocObjectArray()
165 return mirror::ObjectArray<mirror::Class>::Alloc(self, GetClassRoot(kClassArrayClass), length); in AllocClassArray()
170 return mirror::ObjectArray<mirror::String>::Alloc(self, GetClassRoot(kJavaLangStringArrayClass), in AllocStringArray()
176 return mirror::ObjectArray<mirror::ArtMethod>::Alloc(self, in AllocArtMethodArray()
182 mirror::IfTable::Alloc(self, GetClassRoot(kObjectArrayClass), in AllocIfTable()
192 return mirror::ObjectArray<mirror::ArtField>::Alloc( in AllocArtFieldArray()
Dutils_test.cc114 Handle<mirror::ShortArray> a(hs.NewHandle(mirror::ShortArray::Alloc(soa.Self(), 2))); in TEST_F()
119 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F()
129 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F()
138 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F()
/art/runtime/base/
Dallocator.cc37 virtual void* Alloc(size_t size) { in Alloc() function in art::MallocAllocator
56 virtual void* Alloc(size_t size) { in Alloc() function in art::NoopAllocator
/art/compiler/dex/quick/mips/
Dcall_mips.cc71 static_cast<SwitchTable*>(arena_->Alloc(sizeof(SwitchTable), kArenaAllocData)); in GenLargeSparseSwitch()
76 static_cast<LIR**>(arena_->Alloc(elements * sizeof(LIR*), kArenaAllocLIR)); in GenLargeSparseSwitch()
148 static_cast<SwitchTable*>(arena_->Alloc(sizeof(SwitchTable), kArenaAllocData)); in GenLargePackedSwitch()
152 tab_rec->targets = static_cast<LIR**>(arena_->Alloc(size * sizeof(LIR*), in GenLargePackedSwitch()
227 reinterpret_cast<FillArrayData*>(arena_->Alloc(sizeof(FillArrayData), in GenFillArrayData()
/art/runtime/gc/
Dheap-inl.h205 ret = rosalloc_space_->Alloc(self, alloc_size, bytes_allocated, usable_size); in TryToAllocate()
215 ret = dlmalloc_space_->Alloc(self, alloc_size, bytes_allocated, usable_size); in TryToAllocate()
223 ret = non_moving_space_->Alloc(self, alloc_size, bytes_allocated, usable_size); in TryToAllocate()
227 ret = large_object_space_->Alloc(self, alloc_size, bytes_allocated, usable_size); in TryToAllocate()
/art/runtime/entrypoints/
Dentrypoint_utils-inl.h133 return klass->Alloc<kInstrumented>(self, Runtime::Current()->GetHeap()->GetCurrentAllocator()); in AllocObjectFromCode()
136 return klass->Alloc<kInstrumented>(self, allocator_type); in AllocObjectFromCode()
155 return klass->Alloc<kInstrumented, false>(self, heap->GetCurrentAllocator()); in AllocObjectFromCodeResolved()
158 return klass->Alloc<kInstrumented, false>(self, allocator_type); in AllocObjectFromCodeResolved()
170 return klass->Alloc<kInstrumented, false>(self, allocator_type); in AllocObjectFromCodeInitialized()
225 return mirror::Array::Alloc<kInstrumented>(self, klass, component_count, in AllocArrayFromCode()
229 return mirror::Array::Alloc<kInstrumented>(self, klass, component_count, in AllocArrayFromCode()
253 return mirror::Array::Alloc<kInstrumented>(self, klass, component_count, in AllocArrayFromCodeResolved()
/art/compiler/dex/quick/arm64/
Dcall_arm64.cc53 static_cast<SwitchTable*>(arena_->Alloc(sizeof(SwitchTable), kArenaAllocData)); in GenLargeSparseSwitch()
57 tab_rec->targets = static_cast<LIR**>(arena_->Alloc(size * sizeof(LIR*), kArenaAllocLIR)); in GenLargeSparseSwitch()
105 static_cast<SwitchTable*>(arena_->Alloc(sizeof(SwitchTable), kArenaAllocData)); in GenLargePackedSwitch()
110 static_cast<LIR**>(arena_->Alloc(size * sizeof(LIR*), kArenaAllocLIR)); in GenLargePackedSwitch()
163 static_cast<FillArrayData*>(arena_->Alloc(sizeof(FillArrayData), kArenaAllocData)); in GenFillArrayData()
/art/runtime/gc/allocator/
Drosalloc-inl.h27 inline ALWAYS_INLINE void* RosAlloc::Alloc(Thread* self, size_t size, size_t* bytes_allocated) { in Alloc() function
/art/compiler/dex/quick/arm/
Dcall_arm.cc53 static_cast<SwitchTable*>(arena_->Alloc(sizeof(SwitchTable), kArenaAllocData)); in GenLargeSparseSwitch()
57 tab_rec->targets = static_cast<LIR**>(arena_->Alloc(size * sizeof(LIR*), kArenaAllocLIR)); in GenLargeSparseSwitch()
101 static_cast<SwitchTable*>(arena_->Alloc(sizeof(SwitchTable), kArenaAllocData)); in GenLargePackedSwitch()
106 static_cast<LIR**>(arena_->Alloc(size * sizeof(LIR*), kArenaAllocLIR)); in GenLargePackedSwitch()
154 static_cast<FillArrayData*>(arena_->Alloc(sizeof(FillArrayData), kArenaAllocData)); in GenFillArrayData()
/art/compiler/optimizing/
Dstack_map_test.cc45 void* memory = arena.Alloc(size, kArenaAllocMisc); in TEST()
92 void* memory = arena.Alloc(size, kArenaAllocMisc); in TEST()
/art/compiler/dex/
Dmir_optimization_test.cc125 static_cast<SuccessorBlockInfo*>(cu_.arena.Alloc(sizeof(SuccessorBlockInfo), in DoPrepareBasicBlocks()
140 cu_.arena.Alloc(sizeof(BasicBlockDataFlow), kArenaAllocDFInfo)); in DoPrepareBasicBlocks()
158 mirs_ = reinterpret_cast<MIR*>(cu_.arena.Alloc(sizeof(MIR) * count, kArenaAllocMIR)); in DoPrepareMIRs()
179 cu_.arena.Alloc(sizeof(DexFile::CodeItem), kArenaAllocMisc)); in DoPrepareMIRs()
414 (cu_.arena.Alloc(sizeof(SuccessorBlockInfo), kArenaAllocSuccessor)); in TEST_F()
/art/compiler/dex/quick/x86/
Dcall_x86.cc70 static_cast<SwitchTable*>(arena_->Alloc(sizeof(SwitchTable), kArenaAllocData)); in GenLargePackedSwitch()
74 tab_rec->targets = static_cast<LIR**>(arena_->Alloc(size * sizeof(LIR*), in GenLargePackedSwitch()
141 static_cast<FillArrayData*>(arena_->Alloc(sizeof(FillArrayData), kArenaAllocData)); in GenFillArrayData()

1234