/art/runtime/base/ |
H A D | arena_object.h | 32 return allocator->Alloc(size, kAllocKind); 36 return arena->Alloc(size, kAllocKind); 56 return allocator->Alloc(size, kAllocKind); 60 return arena->Alloc(size, kAllocKind);
|
H A D | arena_allocator_test.cc | 71 void* alloc1 = arena.Alloc(Arena::kDefaultSize * 5 / 8); 72 void* alloc2 = arena.Alloc(Arena::kDefaultSize * 2 / 8); 79 void* alloc1 = arena.Alloc(Arena::kDefaultSize * 13 / 16); 80 void* alloc2 = arena.Alloc(Arena::kDefaultSize * 11 / 16); 83 void* alloc3 = arena.Alloc(Arena::kDefaultSize * 7 / 16); 91 void* alloc1 = arena.Alloc(Arena::kDefaultSize * 13 / 16); 92 void* alloc2 = arena.Alloc(Arena::kDefaultSize * 9 / 16); 96 void* alloc3 = arena.Alloc(Arena::kDefaultSize * 5 / 16); 104 void* alloc1 = arena.Alloc(Arena::kDefaultSize * 9 / 16); 105 void* alloc2 = arena.Alloc(Aren [all...] |
H A 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>; 197 template <typename T, typename Alloc> 198 void swap(dchecked_vector<T, Alloc>& lhs, dchecked_vector<T, Alloc>& rhs) { 203 template <typename T, typename Alloc> 204 bool operator==(const dchecked_vector<T, Alloc>& lhs, const dchecked_vector<T, Alloc>& rhs) { 207 template <typename T, typename Alloc> [all...] |
H A D | hash_map.h | 53 class Alloc = std::allocator<std::pair<Key, Value>>> 58 Alloc> { 64 Alloc>; 68 explicit HashMap(const Alloc& alloc)
|
H A D | arena_bit_vector.cc | 56 void* storage = arena->template Alloc<ArenaBitVectorAllocator>(kind); 65 virtual void* Alloc(size_t size) { function in class:art::FINAL 66 return arena_->Alloc(size, this->Kind());
|
H A D | scoped_arena_allocator.h | 88 void* Alloc(size_t bytes, ArenaAllocKind kind) ALWAYS_INLINE { 138 void* addr = arena_stack->Alloc(sizeof(ScopedArenaAllocator), kArenaAllocMisc); 149 void* Alloc(size_t bytes, ArenaAllocKind kind = kArenaAllocMisc) ALWAYS_INLINE { 151 return arena_stack_->Alloc(bytes, kind); 155 T* Alloc(ArenaAllocKind kind = kArenaAllocMisc) { function in class:art::ScopedArenaAllocator 161 return static_cast<T*>(Alloc(length * sizeof(T), kind));
|
H A D | allocator.cc | 33 void* Alloc(size_t size) { function in class:art::FINAL 52 void* Alloc(size_t size ATTRIBUTE_UNUSED) { function in class:art::FINAL 53 LOG(FATAL) << "NoopAllocator::Alloc should not be called";
|
H A D | arena_bit_vector.h | 38 void* storage = arena->template Alloc<ArenaBitVector>(kind);
|
H A D | arena_allocator.h | 303 void* Alloc(size_t bytes, ArenaAllocKind kind = kArenaAllocMisc) ALWAYS_INLINE { 335 auto* new_ptr = Alloc(new_size, kind); 342 T* Alloc(ArenaAllocKind kind = kArenaAllocMisc) { function in class:art::ArenaAllocator 348 return static_cast<T*>(Alloc(length * sizeof(T), kind));
|
/art/compiler/utils/ |
H A D | dedupe_set.h | 35 typename Alloc, 44 DedupeSet(const char* set_name, const Alloc& alloc);
|
H A D | dedupe_set-inl.h | 36 typename Alloc, 40 struct DedupeSet<InKey, StoreKey, Alloc, HashType, HashFunc, kShard>::Stats { 49 typename Alloc, 53 class DedupeSet<InKey, StoreKey, Alloc, HashType, HashFunc, kShard>::Shard { 55 Shard(const Alloc& alloc, const std::string& lock_name) 175 Alloc alloc_; 183 typename Alloc, 187 const StoreKey* DedupeSet<InKey, StoreKey, Alloc, HashType, HashFunc, kShard>::Add( 205 typename Alloc, 209 DedupeSet<InKey, StoreKey, Alloc, HashTyp [all...] |
/art/runtime/lambda/ |
H A D | leaking_allocator.cc | 27 void* mem = Runtime::Current()->GetLinearAlloc()->Alloc(self, byte_size);
|
/art/runtime/ |
H A D | linear_alloc.cc | 31 void* LinearAlloc::Alloc(Thread* self, size_t size) { function in class:art::LinearAlloc 33 return allocator_.Alloc(size);
|
H A D | linear_alloc.h | 31 void* Alloc(Thread* self, size_t size) REQUIRES(!lock_); 39 return reinterpret_cast<T*>(Alloc(self, elements * sizeof(T)));
|
H A D | class_linker-inl.h | 190 return GetClassRoot(kJavaLangObject)->Alloc<true, false>( 197 return mirror::ObjectArray<T>::Alloc(self, GetClassRoot(kObjectArrayClass), length); 202 return mirror::ObjectArray<mirror::Class>::Alloc(self, GetClassRoot(kClassArrayClass), length); 207 return mirror::ObjectArray<mirror::String>::Alloc(self, 214 mirror::IfTable::Alloc(self,
|
/art/runtime/gc/space/ |
H A D | region_space-inl.h | 26 inline mirror::Object* RegionSpace::Alloc(Thread*, size_t num_bytes, size_t* bytes_allocated, function in class:art::gc::space::RegionSpace 39 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); 51 obj = current_region_->Alloc(num_bytes, bytes_allocated, usable_size, 55 obj = evac_region_->Alloc(num_bytes, bytes_allocated, usable_size, 64 obj = current_region_->Alloc(num_bytes, bytes_allocated, usable_size, 67 obj = evac_region_->Alloc(num_bytes, bytes_allocated, usable_size, 84 obj = r->Alloc(num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); 96 obj = r->Alloc(num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); 114 inline mirror::Object* RegionSpace::Region::Alloc(size_t num_bytes, size_t* bytes_allocated, function in class:art::gc::space::RegionSpace::Region
|
H A D | space_create_test.cc | 105 MutableHandle<mirror::Object> ptr1(hs.NewHandle(Alloc(space, 118 mirror::Object* ptr2 = Alloc(space, self, 8 * MB, &dummy, nullptr, &dummy); 136 mirror::Object* ptr4 = space->Alloc(self, 8 * MB, &dummy, nullptr, &dummy); 169 EXPECT_TRUE(space->Alloc(self, 1U * MB, &dummy, nullptr, &dummy) != nullptr); 190 ptr1.Assign(Alloc(space, 203 ptr2 = Alloc(space, self, 8 * MB, &dummy, nullptr, &dummy); 239 MutableHandle<mirror::Object> ptr1(hs.NewHandle(Alloc(space, 252 mirror::Object* ptr2 = Alloc(space, self, 8 * MB, &dummy, nullptr, &dummy); 270 mirror::Object* ptr4 = Alloc(space, self, 8 * MB, &dummy, nullptr, &dummy); 317 lots_of_objects[i] = Alloc(spac [all...] |
H A D | memory_tool_malloc_space.h | 37 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
|
/art/compiler/linker/arm64/ |
H A D | relative_patcher_arm64.h | 54 template <typename Alloc> 55 static uint32_t GetInsn(std::vector<uint8_t, Alloc>* code, uint32_t offset);
|
/art/runtime/mirror/ |
H A D | object_array.h | 33 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)
|
H A D | stack_trace_element.cc | 42 StackTraceElement* StackTraceElement::Alloc(Thread* self, Handle<String> declaring_class, function in class:art::mirror::StackTraceElement
|
H A D | string-inl.h | 156 inline String* String::Alloc(Thread* self, int32_t utf16_length, gc::AllocatorType allocator_type, function in class:art::mirror::String 195 String* string = Alloc<kIsInstrumented>(self, byte_length, allocator_type, visitor); 206 String* new_string = Alloc<kIsInstrumented>(self, count, allocator_type, visitor); 214 String* new_string = Alloc<kIsInstrumented>(self, string_length, allocator_type, visitor);
|
H A D | string.cc | 87 String* new_string = Alloc<true>(self, length + length2, allocator_type, visitor); 101 String* string = Alloc<true>(self, utf16_length, allocator_type, visitor); 125 String* string = Alloc<true>(self, utf16_length, allocator_type, visitor); 261 CharArray* result = CharArray::Alloc(self, GetLength());
|
H A D | object_array-inl.h | 37 inline ObjectArray<T>* ObjectArray<T>::Alloc(Thread* self, Class* object_array_class, function in class:art::mirror::ObjectArray 39 Array* array = Array::Alloc<true>(self, object_array_class, length, 52 inline ObjectArray<T>* ObjectArray<T>::Alloc(Thread* self, Class* object_array_class, function in class:art::mirror::ObjectArray 54 return Alloc(self, object_array_class, length, 260 ObjectArray<T>* new_array = Alloc(self, GetClass(), new_length, allocator_type);
|
H A D | array.cc | 51 Array::Alloc<true>(self, array_class.Get(), array_length, 139 Array* new_array = Alloc<true>(self, GetClass(), new_length, component_shift, allocator_type);
|