Home
last modified time | relevance | path

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

12

/art/runtime/entrypoints/quick/
Dquick_alloc_entrypoints.cc37 gc::AllocatorType allocator_type>
43 if (kUseTlabFastPath && !kInstrumented && allocator_type == gc::kAllocatorTypeTLAB) { in artAllocObjectFromCode()
63 return AllocObjectFromCodeInitialized<kInstrumented>(klass, self, allocator_type).Ptr(); in artAllocObjectFromCode()
65 return AllocObjectFromCodeResolved<kInstrumented>(klass, self, allocator_type).Ptr(); in artAllocObjectFromCode()
67 return AllocObjectFromCode<kInstrumented>(klass, self, allocator_type).Ptr(); in artAllocObjectFromCode()
71 #define GENERATE_ENTRYPOINTS_FOR_ALLOCATOR_INST(suffix, suffix2, instrumented_bool, allocator_type)… argument
75 return artAllocObjectFromCode<false, true, instrumented_bool, allocator_type>(klass, self); \
80 return artAllocObjectFromCode<false, false, instrumented_bool, allocator_type>(klass, self); \
85 return artAllocObjectFromCode<true, false, instrumented_bool, allocator_type>(klass, self); \
92 return mirror::String::AllocEmptyString<instrumented_bool>(self, allocator_type).Ptr(); \
[all …]
/art/runtime/native/
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()
Djava_lang_String.cc75 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in String_fastSubstring() local
80 allocator_type); in String_fastSubstring()
/art/libartbase/base/
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())
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()
Dhash_set.h168 using allocator_type = Alloc; variable
203 explicit HashSet(const allocator_type& alloc) noexcept in HashSet()
483 allocator_type get_allocator() const { in get_allocator()
Dleb128.h367 explicit Leb128EncodingVector(const typename Vector::allocator_type& alloc) in Leb128EncodingVector()
/art/runtime/mirror/
Dobject_array-alloc-inl.h39 gc::AllocatorType allocator_type) { in Alloc() argument
44 allocator_type); in Alloc()
70 gc::AllocatorType allocator_type = heap->IsMovableObject(this) ? heap->GetCurrentAllocator() : in CopyOf() local
72 ObjPtr<ObjectArray<T>> new_array = Alloc(self, GetClass(), new_length, allocator_type); in CopyOf()
Dstring-alloc-inl.h160 gc::AllocatorType allocator_type, in Alloc() argument
197 allocator_type, in Alloc()
202 inline ObjPtr<String> String::AllocEmptyString(Thread* self, gc::AllocatorType allocator_type) { in AllocEmptyString() argument
205 return Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocEmptyString()
214 gc::AllocatorType allocator_type) { in AllocFromByteArray() argument
221 return Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocFromByteArray()
229 gc::AllocatorType allocator_type) { in AllocFromCharArray() argument
236 return Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocFromCharArray()
244 gc::AllocatorType allocator_type) { in AllocFromString() argument
250 return Alloc<kIsInstrumented>(self, length_with_flag, allocator_type, visitor); in AllocFromString()
Darray.cc56 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in RecursiveCreateMultiArray() local
58 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()
149 gc::AllocatorType allocator_type = heap->IsMovableObject(this) ? heap->GetCurrentAllocator() : in CopyOf() local
154 Alloc<true>(self, klass, new_length, component_shift, allocator_type); // Invalidates klass. in CopyOf()
Dclass-alloc-inl.h49 inline ObjPtr<Object> Class::Alloc(Thread* self, gc::AllocatorType allocator_type) { in Alloc() argument
61 allocator_type, in Alloc()
Darray-alloc-inl.h122 gc::AllocatorType allocator_type) { in Alloc() argument
123 DCHECK(allocator_type != gc::kAllocatorTypeLOS); in Alloc()
147 self, array_class, size, allocator_type, visitor)); in Alloc()
154 self, array_class, size, allocator_type, visitor)); in Alloc()
Dstring.cc89 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in DoReplace() local
92 ObjPtr<String> string = Alloc<true>(self, length_with_flag, allocator_type, visitor); in DoReplace()
127 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in AllocFromStrings() local
133 ObjPtr<String> new_string = Alloc<true>(self, length_with_flag, allocator_type, visitor); in AllocFromStrings()
165 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in AllocFromUtf16() local
170 ObjPtr<String> string = Alloc<true>(self, length_with_flag, allocator_type, visitor); in AllocFromUtf16()
202 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in AllocFromModifiedUtf8() local
206 ObjPtr<String> string = Alloc<true>(self, utf16_length_with_flag, allocator_type, visitor); in AllocFromModifiedUtf8()
Dstring.h123 gc::AllocatorType allocator_type)
131 gc::AllocatorType allocator_type)
139 gc::AllocatorType allocator_type)
144 gc::AllocatorType allocator_type)
254 gc::AllocatorType allocator_type,
Dobject_test.cc159 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in TEST_F() local
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()
180 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in TEST_F() local
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()
Dobject_array.h37 gc::AllocatorType allocator_type)
/art/runtime/gc/
Dheap-inl.h252 AllocatorType allocator_type, in TryToAllocate() argument
257 if (allocator_type != kAllocatorTypeRegionTLAB && in TryToAllocate()
258 allocator_type != kAllocatorTypeTLAB && in TryToAllocate()
259 allocator_type != kAllocatorTypeRosAlloc && in TryToAllocate()
260 UNLIKELY(IsOutOfMemoryOnAllocation(allocator_type, alloc_size, kGrow))) { in TryToAllocate()
264 switch (allocator_type) { in TryToAllocate()
280 if (UNLIKELY(IsOutOfMemoryOnAllocation(allocator_type, in TryToAllocate()
291 if (UNLIKELY(IsOutOfMemoryOnAllocation(allocator_type, in TryToAllocate()
396 inline bool Heap::IsOutOfMemoryOnAllocation(AllocatorType allocator_type, in IsOutOfMemoryOnAllocation() argument
411 if (AllocatorMayHaveConcurrentGC(allocator_type) && IsGcConcurrent()) { in IsOutOfMemoryOnAllocation()
Dheap.h939 static ALWAYS_INLINE bool AllocatorHasAllocationStack(AllocatorType allocator_type) { in AllocatorHasAllocationStack() argument
941 allocator_type != kAllocatorTypeRegionTLAB && in AllocatorHasAllocationStack()
942 allocator_type != kAllocatorTypeBumpPointer && in AllocatorHasAllocationStack()
943 allocator_type != kAllocatorTypeTLAB && in AllocatorHasAllocationStack()
944 allocator_type != kAllocatorTypeRegion; in AllocatorHasAllocationStack()
946 static ALWAYS_INLINE bool AllocatorMayHaveConcurrentGC(AllocatorType allocator_type) { in AllocatorMayHaveConcurrentGC() argument
952 allocator_type != kAllocatorTypeTLAB && in AllocatorMayHaveConcurrentGC()
953 allocator_type != kAllocatorTypeBumpPointer; in AllocatorMayHaveConcurrentGC()
1018 AllocatorType allocator_type,
1033 void ThrowOutOfMemoryError(Thread* self, size_t byte_count, AllocatorType allocator_type)
[all …]
Dheap.cc1354 void Heap::ThrowOutOfMemoryError(Thread* self, size_t byte_count, AllocatorType allocator_type) { in ThrowOutOfMemoryError() argument
1373 if (allocator_type == kAllocatorTypeNonMoving) { in ThrowOutOfMemoryError()
1375 } else if (allocator_type == kAllocatorTypeRosAlloc || in ThrowOutOfMemoryError()
1376 allocator_type == kAllocatorTypeDlMalloc) { in ThrowOutOfMemoryError()
1378 } else if (allocator_type == kAllocatorTypeBumpPointer || in ThrowOutOfMemoryError()
1379 allocator_type == kAllocatorTypeTLAB) { in ThrowOutOfMemoryError()
1381 } else if (allocator_type == kAllocatorTypeRegion || in ThrowOutOfMemoryError()
1382 allocator_type == kAllocatorTypeRegionTLAB) { in ThrowOutOfMemoryError()
4319 const AllocatorType allocator_type = GetCurrentAllocator(); in AllocWithNewTLAB() local
4328 if (UNLIKELY(IsOutOfMemoryOnAllocation(allocator_type, expand_bytes, grow))) { in AllocWithNewTLAB()
[all …]
/art/runtime/entrypoints/
Dentrypoint_utils.h55 gc::AllocatorType allocator_type)
64 gc::AllocatorType allocator_type)
73 gc::AllocatorType allocator_type)
95 gc::AllocatorType allocator_type)
104 gc::AllocatorType allocator_type)
Dentrypoint_utils-inl.h189 gc::AllocatorType allocator_type) { in AllocObjectFromCode() argument
202 return klass->Alloc<kInstrumented>(self, allocator_type); in AllocObjectFromCode()
210 gc::AllocatorType allocator_type) { in AllocObjectFromCodeResolved() argument
225 return klass->Alloc<kInstrumented, false>(self, allocator_type); in AllocObjectFromCodeResolved()
233 gc::AllocatorType allocator_type) { in AllocObjectFromCodeInitialized() argument
236 return klass->Alloc<kInstrumented, false>(self, allocator_type); in AllocObjectFromCodeInitialized()
283 gc::AllocatorType allocator_type) { in AllocArrayFromCode() argument
300 klass->GetComponentSizeShift(), allocator_type); in AllocArrayFromCode()
308 gc::AllocatorType allocator_type) { in AllocArrayFromCodeResolved() argument
317 klass->GetComponentSizeShift(), allocator_type); in AllocArrayFromCodeResolved()
/art/libelffile/dwarf/
Ddebug_line_opcode_writer.h225 const typename Vector::allocator_type& alloc =
226 typename Vector::allocator_type())
Ddebug_info_entry_writer.h202 const typename Vector::allocator_type& alloc =
203 typename Vector::allocator_type())
Ddebug_frame_opcode_writer.h301 const typename Vector::allocator_type& alloc =
302 typename Vector::allocator_type())
/art/openjdkjvmti/
Djvmti_weak_table-inl.h250 using allocator_type = Allocator;
252 explicit ReleasableContainer(const allocator_type& alloc, size_t reserve = 10)

12