/art/runtime/base/ |
D | arena_allocator_test.cc | 77 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 …]
|
D | arena_object.h | 34 return allocator->Alloc(size, kAllocKind); 38 return allocator->Alloc(size, kAllocKind); 58 return allocator->Alloc(size, kAllocKind); 62 return allocator->Alloc(size, kAllocKind);
|
D | arena_bit_vector.cc | 56 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()
|
D | scoped_arena_allocator.h | 95 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));
|
D | arena_bit_vector.h | 38 void* storage = allocator->template Alloc<ArenaBitVector>(kind);
|
D | arena_allocator.h | 294 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/ |
D | dchecked_vector.h | 36 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 …]
|
D | hash_map.h | 53 class Alloc = std::allocator<std::pair<Key, Value>>> 58 Alloc> { 64 Alloc>; 68 explicit HashMap(const Alloc& alloc) in HashMap()
|
D | allocator.cc | 33 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/ |
D | dedupe_set-inl.h | 38 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 …]
|
D | dedupe_set.h | 35 typename Alloc, 44 DedupeSet(const char* set_name, const Alloc& alloc);
|
/art/runtime/gc/space/ |
D | space_create_test.cc | 105 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()
|
D | region_space-inl.h | 27 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
|
D | large_object_space_test.cc | 63 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/ |
D | linear_alloc.h | 31 void* Alloc(Thread* self, size_t size) REQUIRES(!lock_); 40 return reinterpret_cast<T*>(Alloc(self, elements * sizeof(T))); in AllocArray()
|
D | linear_alloc.cc | 31 void* LinearAlloc::Alloc(Thread* self, size_t size) { in Alloc() function in art::LinearAlloc 33 return allocator_.Alloc(size); in Alloc()
|
D | reference_table_test.cc | 109 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/ |
D | object_test.cc | 80 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 …]
|
D | object_array.h | 34 static ObjectArray<T>* Alloc(Thread* self, 40 static ObjectArray<T>* Alloc(Thread* self,
|
D | string-inl.h | 213 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()
|
D | class_ext.cc | 77 ObjectArray<DexCache>::Alloc(self, in ExtendObsoleteArrays() 104 ClassExt* ClassExt::Alloc(Thread* self) { in Alloc() function in art::mirror::ClassExt
|
D | object_array-inl.h | 40 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()
|
D | array.cc | 52 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/ |
D | cha_unload.cc | 48 alloc->Alloc(Thread::Current(), 1); in Java_Main_reuseArenaOfMethod()
|
/art/compiler/linker/arm64/ |
D | relative_patcher_arm64.h | 116 template <typename Alloc> 117 static uint32_t GetInsn(std::vector<uint8_t, Alloc>* code, uint32_t offset);
|