Searched refs:Alloc (Results 1 - 25 of 98) sorted by relevance

1234

/art/runtime/base/
H A Darena_object.h32 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 Darena_allocator_test.cc71 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 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>;
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 Dhash_map.h53 class Alloc = std::allocator<std::pair<Key, Value>>>
58 Alloc> {
64 Alloc>;
68 explicit HashMap(const Alloc& alloc)
H A Darena_bit_vector.cc56 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 Dscoped_arena_allocator.h88 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 Dallocator.cc33 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 Darena_bit_vector.h38 void* storage = arena->template Alloc<ArenaBitVector>(kind);
H A Darena_allocator.h303 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 Ddedupe_set.h35 typename Alloc,
44 DedupeSet(const char* set_name, const Alloc& alloc);
H A Ddedupe_set-inl.h36 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 Dleaking_allocator.cc27 void* mem = Runtime::Current()->GetLinearAlloc()->Alloc(self, byte_size);
/art/runtime/
H A Dlinear_alloc.cc31 void* LinearAlloc::Alloc(Thread* self, size_t size) { function in class:art::LinearAlloc
33 return allocator_.Alloc(size);
H A Dlinear_alloc.h31 void* Alloc(Thread* self, size_t size) REQUIRES(!lock_);
39 return reinterpret_cast<T*>(Alloc(self, elements * sizeof(T)));
H A Dclass_linker-inl.h190 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 Dregion_space-inl.h26 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 Dspace_create_test.cc105 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 Dmemory_tool_malloc_space.h37 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
/art/compiler/linker/arm64/
H A Drelative_patcher_arm64.h54 template <typename Alloc>
55 static uint32_t GetInsn(std::vector<uint8_t, Alloc>* code, uint32_t offset);
/art/runtime/mirror/
H A 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)
H A Dstack_trace_element.cc42 StackTraceElement* StackTraceElement::Alloc(Thread* self, Handle<String> declaring_class, function in class:art::mirror::StackTraceElement
H A Dstring-inl.h156 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 Dstring.cc87 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 Dobject_array-inl.h37 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 Darray.cc51 Array::Alloc<true>(self, array_class.Get(), array_length,
139 Array* new_array = Alloc<true>(self, GetClass(), new_length, component_shift, allocator_type);

Completed in 1601 milliseconds

1234