Home
last modified time | relevance | path

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

12345

/art/runtime/base/
Darena_allocator_test.cc77 void* alloc1 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 5 / 8); in TEST_F()
78 void* alloc2 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 2 / 8); in TEST_F()
85 void* alloc1 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 13 / 16); in TEST_F()
86 void* alloc2 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 11 / 16); in TEST_F()
89 void* alloc3 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 7 / 16); in TEST_F()
97 void* alloc1 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 13 / 16); in TEST_F()
98 void* alloc2 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 9 / 16); in TEST_F()
102 void* alloc3 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 5 / 16); in TEST_F()
110 void* alloc1 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 9 / 16); in TEST_F()
111 void* alloc2 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 13 / 16); in TEST_F()
[all …]
Darena_object.h34 return allocator->Alloc(size, kAllocKind);
38 return allocator->Alloc(size, kAllocKind);
58 return allocator->Alloc(size, kAllocKind);
62 return allocator->Alloc(size, kAllocKind);
Darena_bit_vector.cc56 void* storage = allocator->template Alloc<ArenaBitVectorAllocator>(kind); in Create()
65 virtual void* Alloc(size_t size) { in Alloc() function in art::FINAL
66 return allocator_->Alloc(size, this->Kind()); in Alloc()
Dscoped_arena_allocator.h95 void* Alloc(size_t bytes, ArenaAllocKind kind) ALWAYS_INLINE { in Alloc() function
151 void* Alloc(size_t bytes, ArenaAllocKind kind = kArenaAllocMisc) ALWAYS_INLINE {
153 return arena_stack_->Alloc(bytes, kind);
157 T* Alloc(ArenaAllocKind kind = kArenaAllocMisc) {
163 return static_cast<T*>(Alloc(length * sizeof(T), kind));
Darena_bit_vector.h38 void* storage = allocator->template Alloc<ArenaBitVector>(kind);
Darena_allocator.h294 void* Alloc(size_t bytes, ArenaAllocKind kind = kArenaAllocMisc) ALWAYS_INLINE {
355 auto* new_ptr = Alloc(new_size, kind); // Note: Alloc will take care of aligning new_size.
362 T* Alloc(ArenaAllocKind kind = kArenaAllocMisc) {
368 return static_cast<T*>(Alloc(length * sizeof(T), kind));
/art/libartbase/base/
Ddchecked_vector.h36 template <typename T, typename Alloc = std::allocator<T>>
37 class dchecked_vector : private std::vector<T, Alloc> {
41 using Base = std::vector<T, Alloc>;
195 template <typename T, typename Alloc>
196 void swap(dchecked_vector<T, Alloc>& lhs, dchecked_vector<T, Alloc>& rhs) { in swap()
201 template <typename T, typename Alloc>
202 bool operator==(const dchecked_vector<T, Alloc>& lhs, const dchecked_vector<T, Alloc>& rhs) {
205 template <typename T, typename Alloc>
206 bool operator!=(const dchecked_vector<T, Alloc>& lhs, const dchecked_vector<T, Alloc>& rhs) {
209 template <typename T, typename Alloc>
[all …]
Dhash_map.h53 class Alloc = std::allocator<std::pair<Key, Value>>>
58 Alloc> {
64 Alloc>;
68 explicit HashMap(const Alloc& alloc) in HashMap()
Dallocator.cc33 void* Alloc(size_t size) { in Alloc() function in art::FINAL
52 void* Alloc(size_t size ATTRIBUTE_UNUSED) { in Alloc() function in art::FINAL
/art/compiler/utils/
Ddedupe_set-inl.h38 typename Alloc,
42 struct DedupeSet<InKey, StoreKey, Alloc, HashType, HashFunc, kShard>::Stats {
51 typename Alloc,
55 class DedupeSet<InKey, StoreKey, Alloc, HashType, HashFunc, kShard>::Shard {
57 Shard(const Alloc& alloc, const std::string& lock_name)
177 Alloc alloc_;
185 typename Alloc,
189 const StoreKey* DedupeSet<InKey, StoreKey, Alloc, HashType, HashFunc, kShard>::Add(
207 typename Alloc,
211 DedupeSet<InKey, StoreKey, Alloc, HashType, HashFunc, kShard>::DedupeSet(const char* set_name,
[all …]
Ddedupe_set.h35 typename Alloc,
44 DedupeSet(const char* set_name, const Alloc& alloc);
/art/runtime/gc/space/
Dspace_create_test.cc105 MutableHandle<mirror::Object> ptr1(hs.NewHandle(Alloc(space, in TEST_P()
118 mirror::Object* ptr2 = Alloc(space, self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
136 mirror::Object* ptr4 = space->Alloc(self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
169 EXPECT_TRUE(space->Alloc(self, 1U * MB, &dummy, nullptr, &dummy) != nullptr); in TEST_P()
190 ptr1.Assign(Alloc(space, in TEST_P()
203 ptr2 = Alloc(space, self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
239 MutableHandle<mirror::Object> ptr1(hs.NewHandle(Alloc(space, in TEST_P()
252 mirror::Object* ptr2 = Alloc(space, self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
270 mirror::Object* ptr4 = Alloc(space, self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
317 lots_of_objects[i] = Alloc(space, in TEST_P()
Dregion_space-inl.h27 inline mirror::Object* RegionSpace::Alloc(Thread* self ATTRIBUTE_UNUSED, in Alloc() function
43 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocThreadUnsafe()
55 obj = (kForEvac ? evac_region_ : current_region_)->Alloc(num_bytes, in AllocNonvirtual()
64 obj = (kForEvac ? evac_region_ : current_region_)->Alloc(num_bytes, in AllocNonvirtual()
73 obj = r->Alloc(num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocNonvirtual()
94 inline mirror::Object* RegionSpace::Region::Alloc(size_t num_bytes, in Alloc() function
Dlarge_object_space_test.cc63 mirror::Object* obj = los->Alloc(self, request_size, &allocation_size, nullptr, in LargeObjectTest()
115 mirror::Object* obj = los->Alloc(self, 100 * MB, &bytes_allocated, nullptr, in LargeObjectTest()
134 mirror::Object* ptr = los_->Alloc(self, size_, &alloc_size, nullptr, in Run()
/art/runtime/
Dlinear_alloc.h31 void* Alloc(Thread* self, size_t size) REQUIRES(!lock_);
40 return reinterpret_cast<T*>(Alloc(self, elements * sizeof(T))); in AllocArray()
Dlinear_alloc.cc31 void* LinearAlloc::Alloc(Thread* self, size_t size) { in Alloc() function in art::LinearAlloc
33 return allocator_.Alloc(size); in Alloc()
Dreference_table_test.cc109 mirror::Object* o2 = mirror::ShortArray::Alloc(soa.Self(), 0); in TEST_F()
292 mirror::Object* b1_1 = mirror::ByteArray::Alloc(soa.Self(), 1); in TEST_F()
294 rt.Add(mirror::ByteArray::Alloc(soa.Self(), 2)); in TEST_F()
296 rt.Add(mirror::ByteArray::Alloc(soa.Self(), 2)); in TEST_F()
297 rt.Add(mirror::ByteArray::Alloc(soa.Self(), 1)); in TEST_F()
298 rt.Add(mirror::ByteArray::Alloc(soa.Self(), 2)); in TEST_F()
301 rt.Add(mirror::CharArray::Alloc(soa.Self(), 0)); in TEST_F()
/art/runtime/mirror/
Dobject_test.cc80 return mirror::ObjectArray<T>::Alloc( in AllocObjectArray()
158 hs.NewHandle(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSizeShift(), in TEST_F()
164 a.Assign(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSizeShift(), in TEST_F()
170 a.Assign(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSizeShift(), in TEST_F()
181 hs.NewHandle(Array::Alloc<true, true>(soa.Self(), c, 1, c->GetComponentSizeShift(), in TEST_F()
187 a.Assign(Array::Alloc<true, true>(soa.Self(), c, 2, c->GetComponentSizeShift(), in TEST_F()
193 a.Assign(Array::Alloc<true, true>(soa.Self(), c, 2, c->GetComponentSizeShift(), in TEST_F()
199 a.Assign(Array::Alloc<true, true>(soa.Self(), c, 2, c->GetComponentSizeShift(), in TEST_F()
210 ArrayT* a = ArrayT::Alloc(soa.Self(), 2); in TestPrimitiveArray()
258 ArrayT* a = ArrayT::Alloc(soa.Self(), 2); in TEST_F()
[all …]
Dobject_array.h34 static ObjectArray<T>* Alloc(Thread* self,
40 static ObjectArray<T>* Alloc(Thread* self,
Dstring-inl.h213 inline String* String::Alloc(Thread* self, int32_t utf16_length_with_flag, in Alloc() function
255 return Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocEmptyString()
268 String* string = Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocFromByteArray()
282 String* new_string = Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocFromCharArray()
294 String* new_string = Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocFromString()
Dclass_ext.cc77 ObjectArray<DexCache>::Alloc(self, in ExtendObsoleteArrays()
104 ClassExt* ClassExt::Alloc(Thread* self) { in Alloc() function in art::mirror::ClassExt
Dobject_array-inl.h40 inline ObjectArray<T>* ObjectArray<T>::Alloc(Thread* self, in Alloc() function
43 Array* array = Array::Alloc<true>(self, in Alloc()
57 inline ObjectArray<T>* ObjectArray<T>::Alloc(Thread* self, in Alloc() function
60 return Alloc(self, in Alloc()
357 ObjectArray<T>* new_array = Alloc(self, GetClass(), new_length, allocator_type); in CopyOf()
Darray.cc52 Array::Alloc<true>(self, array_class.Get(), array_length, in RecursiveCreateMultiArray()
140 …ObjPtr<Array> new_array = Alloc<true>(self, GetClass(), new_length, component_shift, allocator_typ… in CopyOf()
/art/test/616-cha-unloading/
Dcha_unload.cc48 alloc->Alloc(Thread::Current(), 1); in Java_Main_reuseArenaOfMethod()
/art/compiler/linker/arm64/
Drelative_patcher_arm64.h116 template <typename Alloc>
117 static uint32_t GetInsn(std::vector<uint8_t, Alloc>* code, uint32_t offset);

12345