Home
last modified time | relevance | path

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

12345

/art/libartbase/base/
Darena_allocator_test.cc79 void* alloc1 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 5 / 8); in TEST_F()
80 void* alloc2 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 2 / 8); in TEST_F()
87 void* alloc1 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 13 / 16); in TEST_F()
88 void* alloc2 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 11 / 16); in TEST_F()
91 void* alloc3 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 7 / 16); in TEST_F()
99 void* alloc1 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 13 / 16); in TEST_F()
100 void* alloc2 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 9 / 16); in TEST_F()
104 void* alloc3 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 5 / 16); in TEST_F()
112 void* alloc1 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 9 / 16); in TEST_F()
113 void* alloc2 = allocator.Alloc(arena_allocator::kArenaDefaultSize * 13 / 16); in TEST_F()
[all …]
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 …]
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);
Dhash_map.h56 class Alloc = std::allocator<std::pair<Key, Value>>>
61 Alloc> {
67 Alloc>;
71 explicit HashMap(const Alloc& alloc) in HashMap()
Darena_bit_vector.cc56 void* storage = allocator->template Alloc<ArenaBitVectorAllocator>(kind); in Create()
65 void* Alloc(size_t size) override { in Alloc() function in art::ArenaBitVectorAllocator
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));
Dallocator.cc33 void* Alloc(size_t size) override { in Alloc() function in art::MallocAllocator
52 void* Alloc(size_t size ATTRIBUTE_UNUSED) override { in Alloc() function in art::NoopAllocator
Darena_bit_vector.h38 void* storage = allocator->template Alloc<ArenaBitVector>(kind);
/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/mirror/
Dobject_array-alloc-inl.h36 inline ObjPtr<ObjectArray<T>> ObjectArray<T>::Alloc(Thread* self, in Alloc() function
40 ObjPtr<Array> array = Array::Alloc<true>(self, in Alloc()
54 inline ObjPtr<ObjectArray<T>> ObjectArray<T>::Alloc(Thread* self, in Alloc() function
57 return Alloc(self, in Alloc()
72 ObjPtr<ObjectArray<T>> new_array = Alloc(self, GetClass(), new_length, allocator_type); in CopyOf()
Dclass-alloc-inl.h49 inline ObjPtr<Object> Class::Alloc(Thread* self, gc::AllocatorType allocator_type) { in Alloc() function
74 return Alloc<true>(self, Runtime::Current()->GetHeap()->GetCurrentAllocator()); in AllocObject()
78 return Alloc<true>(self, Runtime::Current()->GetHeap()->GetCurrentNonMovingAllocator()); in AllocNonMovableObject()
Darray.cc57 Handle<Array> new_array(hs.NewHandle(Array::Alloc<true>( in RecursiveCreateMultiArray()
123 ObjPtr<PrimitiveArray<T>> PrimitiveArray<T>::Alloc(Thread* self, size_t length) { in Alloc() function in art::mirror::PrimitiveArray
125 ObjPtr<Array> raw_array = Array::Alloc<true>(self, in Alloc()
154 Alloc<true>(self, klass, new_length, component_shift, allocator_type); // Invalidates klass. in CopyOf()
Dstring-alloc-inl.h158 inline ObjPtr<String> String::Alloc(Thread* self, in Alloc() function
205 return Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocEmptyString()
221 return Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocFromByteArray()
236 return Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocFromCharArray()
250 return Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocFromString()
Dobject_test.cc82 return mirror::ObjectArray<T>::Alloc( in AllocObjectArray()
161 Array::Alloc<true>(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
166 a.Assign(Array::Alloc<true>(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
171 a.Assign(Array::Alloc<true>(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
182 Array::Alloc<true, true>(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
188 Array::Alloc<true, true>(soa.Self(), c.Get(), 2, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
194 Array::Alloc<true, true>(soa.Self(), c.Get(), 2, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
200 Array::Alloc<true, true>(soa.Self(), c.Get(), 2, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
211 Handle<ArrayT> a = hs.NewHandle(ArrayT::Alloc(soa.Self(), 2)); in TestPrimitiveArray()
261 Handle<ArrayT> a = hs.NewHandle(ArrayT::Alloc(soa.Self(), 2)); in TEST_F()
[all …]
Dobject_array.h34 static ObjPtr<ObjectArray<T>> Alloc(Thread* self,
40 static ObjPtr<ObjectArray<T>> Alloc(Thread* self,
Dclass_ext.cc78 ObjectArray<DexCache>::Alloc(self, in ExtendObsoleteArrays()
105 ObjPtr<ClassExt> ClassExt::Alloc(Thread* self) { in Alloc() function in art::mirror::ClassExt
/art/test/1000-non-moving-space-stress/src-art/
DMain.java29 $noinline$Alloc(runtime); in main()
47 static void $noinline$Alloc(VMRuntime runtime) { in $noinline$Alloc()
/art/runtime/gc/space/
Dspace_create_test.cc102 MutableHandle<mirror::Object> ptr1(hs.NewHandle(Alloc(space, in TEST_P()
115 mirror::Object* ptr2 = Alloc(space, self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
133 mirror::Object* ptr4 = space->Alloc(self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
166 EXPECT_TRUE(space->Alloc(self, 1U * MB, &dummy, nullptr, &dummy) != nullptr); in TEST_P()
187 ptr1.Assign(Alloc(space, in TEST_P()
200 ptr2 = Alloc(space, self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
236 MutableHandle<mirror::Object> ptr1(hs.NewHandle(Alloc(space, in TEST_P()
249 mirror::Object* ptr2 = Alloc(space, self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
267 mirror::Object* ptr4 = Alloc(space, self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
314 lots_of_objects[i] = Alloc(space, in TEST_P()
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()
Dregion_space-inl.h31 inline mirror::Object* RegionSpace::Alloc(Thread* self ATTRIBUTE_UNUSED, in Alloc() function
47 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocThreadUnsafe()
59 obj = (kForEvac ? evac_region_ : current_region_)->Alloc(num_bytes, in AllocNonvirtual()
69 obj = (kForEvac ? evac_region_ : current_region_)->Alloc(num_bytes, in AllocNonvirtual()
78 obj = r->Alloc(num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocNonvirtual()
99 inline mirror::Object* RegionSpace::Region::Alloc(size_t num_bytes, in Alloc() function
/art/runtime/
Dlinear_alloc.h32 void* Alloc(Thread* self, size_t size) REQUIRES(!lock_);
41 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.cc113 Handle<mirror::ShortArray> o2 = hs.NewHandle(mirror::ShortArray::Alloc(soa.Self(), 0)); in TEST_F()
299 Handle<mirror::ByteArray> b1_1 = hs.NewHandle(mirror::ByteArray::Alloc(soa.Self(), 1)); in TEST_F()
301 rt.Add(mirror::ByteArray::Alloc(soa.Self(), 2)); in TEST_F()
303 rt.Add(mirror::ByteArray::Alloc(soa.Self(), 2)); in TEST_F()
304 rt.Add(mirror::ByteArray::Alloc(soa.Self(), 1)); in TEST_F()
305 rt.Add(mirror::ByteArray::Alloc(soa.Self(), 2)); in TEST_F()
308 rt.Add(mirror::CharArray::Alloc(soa.Self(), 0)); in TEST_F()
/art/dex2oat/linker/arm64/
Drelative_patcher_arm64.h66 template <typename Alloc>
67 static uint32_t GetInsn(std::vector<uint8_t, Alloc>* code, uint32_t offset);

12345