Home
last modified time | relevance | path

Searched refs:Alloc (Results 1 – 25 of 91) 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.cc169 hs.NewHandle(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), in TEST_F()
175 a.Assign(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), in TEST_F()
181 a.Assign(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), in TEST_F()
192 hs.NewHandle(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), in TEST_F()
198 a.Assign(Array::Alloc<true>(soa.Self(), c, 2, c->GetComponentSize(), in TEST_F()
204 a.Assign(Array::Alloc<true>(soa.Self(), c, 2, c->GetComponentSize(), in TEST_F()
210 a.Assign(Array::Alloc<true>(soa.Self(), c, 2, c->GetComponentSize(), in TEST_F()
221 ArrayT* a = ArrayT::Alloc(soa.Self(), 2); in TestPrimitiveArray()
294 Handle<IntArray> dims(hs.NewHandle(IntArray::Alloc(soa.Self(), 1))); in TEST_F()
307 dims.Assign(IntArray::Alloc(soa.Self(), 2)); in TEST_F()
[all …]
Dstring.h147 static String* Alloc(Thread* self, int32_t utf16_length)
150 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()
/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
Dhash_map.h53 class Alloc = std::allocator<std::pair<Key, Value>>>
55 HashMapWrapper<Pred>, Alloc> {
/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.h217 ret = rosalloc_space_->Alloc(self, alloc_size, bytes_allocated, usable_size); in TryToAllocate()
227 ret = dlmalloc_space_->Alloc(self, alloc_size, bytes_allocated, usable_size); in TryToAllocate()
235 ret = non_moving_space_->Alloc(self, alloc_size, bytes_allocated, usable_size); in TryToAllocate()
239 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