Home
last modified time | relevance | path

Searched refs:allocator_type (Results 1 – 25 of 38) sorted by relevance

12

/aosp12/art/runtime/entrypoints/quick/
H A Dquick_alloc_entrypoints.cc37 gc::AllocatorType allocator_type>
46 allocator_type == gc::kAllocatorTypeTLAB) { in artAllocObjectFromCode()
67 return AllocObjectFromCodeResolved<kInstrumented>(klass, self, allocator_type).Ptr(); in artAllocObjectFromCode()
69 return AllocObjectFromCode<kInstrumented>(klass, self, allocator_type).Ptr(); in artAllocObjectFromCode()
101 klass, component_count, self, allocator_type).Ptr(); \
111 self, byte_count, handle_array, offset, high, allocator_type).Ptr(); \
119 self, char_count, handle_array, offset, allocator_type).Ptr(); \
127 self, handle_string->GetLength(), handle_string, 0, allocator_type).Ptr(); \
130 #define GENERATE_ENTRYPOINTS_FOR_ALLOCATOR(suffix, allocator_type) \ argument
131 GENERATE_ENTRYPOINTS_FOR_ALLOCATOR_INST(suffix, Instrumented, true, allocator_type) \
[all …]
/aosp12/art/libartbase/base/
H A Ddchecked_vector.h45 using typename Base::allocator_type;
60 explicit dchecked_vector(const allocator_type& alloc) in dchecked_vector()
62 explicit dchecked_vector(size_type n, const allocator_type& alloc = allocator_type())
66 const allocator_type& alloc = allocator_type())
71 const allocator_type& alloc = allocator_type())
75 dchecked_vector(const dchecked_vector& src, const allocator_type& alloc) in dchecked_vector()
79 dchecked_vector(dchecked_vector&& src, const allocator_type& alloc) in dchecked_vector()
82 const allocator_type& alloc = allocator_type())
H A Dsafe_map.h39 typedef typename ::std::map<K, V, Comparator, Allocator>::allocator_type allocator_type; typedef
49 explicit SafeMap(const key_compare& cmp, const allocator_type& allocator = allocator_type())
58 allocator_type get_allocator() const { return map_.get_allocator(); } in get_allocator()
H A Dhash_set.h174 using allocator_type = Alloc; variable
196 explicit HashSet(const allocator_type& alloc) noexcept in HashSet()
200 : HashSet(min_load_factor, max_load_factor, allocator_type()) {} in HashSet()
201 HashSet(double min_load_factor, double max_load_factor, const allocator_type& alloc) noexcept in HashSet()
209 const allocator_type& alloc) noexcept in HashSet()
216 : HashSet(min_load_factor, max_load_factor, hashfn, pred, allocator_type()) {} in HashSet()
221 const allocator_type& alloc) noexcept in HashSet()
280 HashSet(value_type* buffer, size_t buffer_size, const allocator_type& alloc) in HashSet()
283 : HashSet(min_load_factor, max_load_factor, buffer, buffer_size, allocator_type()) {} in HashSet()
288 const allocator_type& alloc) in HashSet()
[all …]
/aosp12/art/runtime/mirror/
H A Dstring-alloc-inl.h161 gc::AllocatorType allocator_type, in Alloc() argument
198 allocator_type, in Alloc()
203 inline ObjPtr<String> String::AllocEmptyString(Thread* self, gc::AllocatorType allocator_type) { in AllocEmptyString() argument
206 return Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocEmptyString()
215 gc::AllocatorType allocator_type) { in AllocFromByteArray() argument
222 return Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocFromByteArray()
230 gc::AllocatorType allocator_type) { in AllocFromCharArray() argument
237 return Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocFromCharArray()
245 gc::AllocatorType allocator_type) { in AllocFromString() argument
251 return Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocFromString()
H A Darray.cc56 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in RecursiveCreateMultiArray() local
58 Array::Alloc(self, array_class.Get(), array_length, component_size_shift, allocator_type))); in RecursiveCreateMultiArray()
124 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in Alloc() local
129 allocator_type); in Alloc()
146 gc::AllocatorType allocator_type = heap->IsMovableObject(h_this.Get()) in CopyOf() local
152 Alloc(self, klass, new_length, component_shift, allocator_type); // Invalidates klass. in CopyOf()
H A Dobject_array-alloc-inl.h39 gc::AllocatorType allocator_type) { in Alloc() argument
44 allocator_type); in Alloc()
69 gc::AllocatorType allocator_type = heap->IsMovableObject(h_this.Get()) in CopyOf() local
72 ObjPtr<ObjectArray<T>> new_array = Alloc(self, h_this->GetClass(), new_length, allocator_type); in CopyOf()
H A Dstring.cc81 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in DoReplace() local
112 return Alloc(self, length_with_flag, allocator_type, visitor); in DoReplace()
118 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in DoConcat() local
151 return Alloc(self, length_with_flag, allocator_type, visitor); in DoConcat()
158 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in AllocFromUtf16() local
176 return Alloc(self, length_with_flag, allocator_type, visitor); in AllocFromUtf16()
196 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in AllocFromModifiedUtf8() local
211 return Alloc(self, length_with_flag, allocator_type, visitor); in AllocFromModifiedUtf8()
H A Darray-alloc-inl.h123 gc::AllocatorType allocator_type) { in Alloc() argument
124 DCHECK(allocator_type != gc::kAllocatorTypeLOS); in Alloc()
148 self, array_class, size, allocator_type, visitor)); in Alloc()
155 self, array_class, size, allocator_type, visitor)); in Alloc()
H A Dstring.h129 gc::AllocatorType allocator_type)
137 gc::AllocatorType allocator_type)
145 gc::AllocatorType allocator_type)
150 gc::AllocatorType allocator_type)
259 gc::AllocatorType allocator_type,
H A Dclass-alloc-inl.h50 inline ObjPtr<Object> Class::Alloc(Thread* self, gc::AllocatorType allocator_type) { in Alloc() argument
66 self, this, this->object_size_, allocator_type, VoidFunctor()); in Alloc()
H A Dobject_test.cc159 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in TEST_F() local
161 Array::Alloc(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
166 a.Assign(Array::Alloc(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
171 a.Assign(Array::Alloc(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
180 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in TEST_F() local
183 soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
189 soa.Self(), c.Get(), 2, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
195 soa.Self(), c.Get(), 2, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
201 soa.Self(), c.Get(), 2, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
/aosp12/art/runtime/gc/
H A Dheap-inl.h299 AllocatorType allocator_type, in TryToAllocate() argument
304 if (allocator_type != kAllocatorTypeRegionTLAB && in TryToAllocate()
305 allocator_type != kAllocatorTypeTLAB && in TryToAllocate()
306 allocator_type != kAllocatorTypeRosAlloc && in TryToAllocate()
307 UNLIKELY(IsOutOfMemoryOnAllocation(allocator_type, alloc_size, kGrow))) { in TryToAllocate()
311 switch (allocator_type) { in TryToAllocate()
327 if (UNLIKELY(IsOutOfMemoryOnAllocation(allocator_type, in TryToAllocate()
338 if (UNLIKELY(IsOutOfMemoryOnAllocation(allocator_type, in TryToAllocate()
411 allocator_type, in TryToAllocate()
442 inline bool Heap::IsOutOfMemoryOnAllocation(AllocatorType allocator_type, in IsOutOfMemoryOnAllocation() argument
[all …]
H A Dheap.h1002 static ALWAYS_INLINE bool AllocatorHasAllocationStack(AllocatorType allocator_type) { in AllocatorHasAllocationStack() argument
1004 allocator_type != kAllocatorTypeRegionTLAB && in AllocatorHasAllocationStack()
1005 allocator_type != kAllocatorTypeBumpPointer && in AllocatorHasAllocationStack()
1006 allocator_type != kAllocatorTypeTLAB && in AllocatorHasAllocationStack()
1007 allocator_type != kAllocatorTypeRegion; in AllocatorHasAllocationStack()
1009 static ALWAYS_INLINE bool AllocatorMayHaveConcurrentGC(AllocatorType allocator_type) { in AllocatorMayHaveConcurrentGC() argument
1015 allocator_type != kAllocatorTypeTLAB && in AllocatorMayHaveConcurrentGC()
1016 allocator_type != kAllocatorTypeBumpPointer; in AllocatorMayHaveConcurrentGC()
1079 AllocatorType allocator_type,
1087 AllocatorType allocator_type,
[all …]
H A Dheap.cc1435 if (allocator_type == kAllocatorTypeNonMoving) { in ThrowOutOfMemoryError()
1437 } else if (allocator_type == kAllocatorTypeRosAlloc || in ThrowOutOfMemoryError()
1438 allocator_type == kAllocatorTypeDlMalloc) { in ThrowOutOfMemoryError()
1440 } else if (allocator_type == kAllocatorTypeBumpPointer || in ThrowOutOfMemoryError()
1441 allocator_type == kAllocatorTypeTLAB) { in ThrowOutOfMemoryError()
1443 } else if (allocator_type == kAllocatorTypeRegion || in ThrowOutOfMemoryError()
1444 allocator_type == kAllocatorTypeRegionTLAB) { in ThrowOutOfMemoryError()
1449 if (allocator_type != kAllocatorTypeLOS) { in ThrowOutOfMemoryError()
4334 } else if (allocator_type == kAllocatorTypeTLAB) { in AllocWithNewTLAB()
4355 DCHECK(allocator_type == kAllocatorTypeRegionTLAB); in AllocWithNewTLAB()
[all …]
/aosp12/art/runtime/native/
H A Djava_lang_StringFactory.cc49 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in StringFactory_newStringFromBytes() local
55 allocator_type); in StringFactory_newStringFromBytes()
66 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in StringFactory_newStringFromChars() local
71 allocator_type); in StringFactory_newStringFromChars()
83 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in StringFactory_newStringFromString() local
88 allocator_type); in StringFactory_newStringFromString()
H A Djava_lang_String.cc74 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in String_fastSubstring() local
79 allocator_type); in String_fastSubstring()
/aosp12/art/runtime/entrypoints/
H A Dentrypoint_utils.h57 gc::AllocatorType allocator_type)
66 gc::AllocatorType allocator_type)
75 gc::AllocatorType allocator_type)
97 gc::AllocatorType allocator_type)
106 gc::AllocatorType allocator_type)
H A Dentrypoint_utils-inl.h172 gc::AllocatorType allocator_type) { in AllocObjectFromCode() argument
185 return klass->Alloc<kInstrumented>(self, allocator_type); in AllocObjectFromCode()
193 gc::AllocatorType allocator_type) { in AllocObjectFromCodeResolved() argument
210 mirror::Class::AddFinalizer::kNoAddFinalizer>(self, allocator_type); in AllocObjectFromCodeResolved()
218 gc::AllocatorType allocator_type) { in AllocObjectFromCodeInitialized() argument
222 mirror::Class::AddFinalizer::kNoAddFinalizer>(self, allocator_type); in AllocObjectFromCodeInitialized()
269 gc::AllocatorType allocator_type) { in AllocArrayFromCode() argument
289 allocator_type); in AllocArrayFromCode()
297 gc::AllocatorType allocator_type) { in AllocArrayFromCodeResolved() argument
309 allocator_type); in AllocArrayFromCodeResolved()
/aosp12/frameworks/native/libs/binder/ndk/scripts/
H A Dgen_parcel_helper.py135 allocator_type = "AParcel_" + pretty.lower() + "ArrayAllocator"
151 … pre_header += "typedef bool (*" + allocator_type + ")(void* arrayData, int32_t length);\n\n"
192 …pre_header += "typedef bool (*" + allocator_type + ")(void* arrayData, int32_t length, " + cpp + "…
196 read_array_args += [(allocator_type, "allocator")]
/aosp12/art/libelffile/dwarf/
H A Ddebug_line_opcode_writer.h225 const typename Vector::allocator_type& alloc =
226 typename Vector::allocator_type())
H A Ddebug_info_entry_writer.h202 const typename Vector::allocator_type& alloc =
203 typename Vector::allocator_type())
H A Ddebug_frame_opcode_writer.h303 const typename Vector::allocator_type& alloc =
304 typename Vector::allocator_type())
/aosp12/art/runtime/
H A Dstring_builder_append.cc357 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in AppendF() local
359 self, length_with_flag, allocator_type, builder); in AppendF()
/aosp12/art/openjdkjvmti/
H A Djvmti_weak_table-inl.h250 using allocator_type = Allocator;
252 explicit ReleasableContainer(const allocator_type& alloc, size_t reserve = 10)

12