Home
last modified time | relevance | path

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

/art/runtime/entrypoints/quick/
Dquick_alloc_entrypoints.cc30 #define GENERATE_ENTRYPOINTS_FOR_ALLOCATOR_INST(suffix, suffix2, instrumented_bool, allocator_type)… argument
35 if (kUseTlabFastPath && !instrumented_bool && allocator_type == gc::kAllocatorTypeTLAB) { \
56 return AllocObjectFromCode<false, instrumented_bool>(type_idx, method, self, allocator_type); \
63 if (kUseTlabFastPath && !instrumented_bool && allocator_type == gc::kAllocatorTypeTLAB) { \
83 return AllocObjectFromCodeResolved<instrumented_bool>(klass, self, allocator_type); \
90 if (kUseTlabFastPath && !instrumented_bool && allocator_type == gc::kAllocatorTypeTLAB) { \
108 return AllocObjectFromCodeInitialized<instrumented_bool>(klass, self, allocator_type); \
114 return AllocObjectFromCode<true, instrumented_bool>(type_idx, method, self, allocator_type); \
121 allocator_type); \
128 allocator_type); \
[all …]
/art/runtime/native/
Djava_lang_StringFactory.cc46 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in StringFactory_newStringFromBytes() local
49 allocator_type); in StringFactory_newStringFromBytes()
58 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in StringFactory_newStringFromChars() local
61 allocator_type); in StringFactory_newStringFromChars()
73 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in StringFactory_newStringFromString() local
75 string, 0, allocator_type); in StringFactory_newStringFromString()
Djava_lang_String.cc77 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in String_fastSubstring() local
79 start, allocator_type); in String_fastSubstring()
Djava_lang_Class.cc463 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in Class_newInstance() local
465 mirror::Object* obj = mirror::String::Alloc<true>(soa.Self(), 0, allocator_type, visitor); in Class_newInstance()
/art/runtime/gc/
Dheap-inl.h222 inline mirror::Object* Heap::TryToAllocate(Thread* self, AllocatorType allocator_type, in TryToAllocate() argument
226 if (allocator_type != kAllocatorTypeTLAB && allocator_type != kAllocatorTypeRegionTLAB && in TryToAllocate()
227 allocator_type != kAllocatorTypeRosAlloc && in TryToAllocate()
228 UNLIKELY(IsOutOfMemoryOnAllocation<kGrow>(allocator_type, alloc_size))) { in TryToAllocate()
232 switch (allocator_type) { in TryToAllocate()
248 if (UNLIKELY(IsOutOfMemoryOnAllocation<kGrow>(allocator_type, in TryToAllocate()
258 if (UNLIKELY(IsOutOfMemoryOnAllocation<kGrow>(allocator_type, in TryToAllocate()
300 if (UNLIKELY(IsOutOfMemoryOnAllocation<kGrow>(allocator_type, new_tlab_size))) { in TryToAllocate()
332 … if (LIKELY(!IsOutOfMemoryOnAllocation<kGrow>(allocator_type, space::RegionSpace::kRegionSize))) { in TryToAllocate()
344 if (!IsOutOfMemoryOnAllocation<kGrow>(allocator_type, alloc_size)) { in TryToAllocate()
[all …]
Dheap.h712 static ALWAYS_INLINE bool AllocatorHasAllocationStack(AllocatorType allocator_type) { in AllocatorHasAllocationStack() argument
714 allocator_type != kAllocatorTypeBumpPointer && in AllocatorHasAllocationStack()
715 allocator_type != kAllocatorTypeTLAB && in AllocatorHasAllocationStack()
716 allocator_type != kAllocatorTypeRegion && in AllocatorHasAllocationStack()
717 allocator_type != kAllocatorTypeRegionTLAB; in AllocatorHasAllocationStack()
719 static ALWAYS_INLINE bool AllocatorMayHaveConcurrentGC(AllocatorType allocator_type) { in AllocatorMayHaveConcurrentGC() argument
721 allocator_type != kAllocatorTypeBumpPointer && in AllocatorMayHaveConcurrentGC()
722 allocator_type != kAllocatorTypeTLAB; in AllocatorMayHaveConcurrentGC()
766 ALWAYS_INLINE mirror::Object* TryToAllocate(Thread* self, AllocatorType allocator_type,
772 void ThrowOutOfMemoryError(Thread* self, size_t byte_count, AllocatorType allocator_type)
[all …]
Dheap.cc1138 void Heap::ThrowOutOfMemoryError(Thread* self, size_t byte_count, AllocatorType allocator_type) { in ThrowOutOfMemoryError() argument
1146 if (allocator_type == kAllocatorTypeNonMoving) { in ThrowOutOfMemoryError()
1148 } else if (allocator_type == kAllocatorTypeRosAlloc || in ThrowOutOfMemoryError()
1149 allocator_type == kAllocatorTypeDlMalloc) { in ThrowOutOfMemoryError()
1151 } else if (allocator_type == kAllocatorTypeBumpPointer || in ThrowOutOfMemoryError()
1152 allocator_type == kAllocatorTypeTLAB) { in ThrowOutOfMemoryError()
1154 } else if (allocator_type == kAllocatorTypeRegion || in ThrowOutOfMemoryError()
1155 allocator_type == kAllocatorTypeRegionTLAB) { in ThrowOutOfMemoryError()
/art/runtime/entrypoints/
Dentrypoint_utils.h63 gc::AllocatorType allocator_type)
70 gc::AllocatorType allocator_type)
77 … gc::AllocatorType allocator_type)
97 gc::AllocatorType allocator_type)
105 gc::AllocatorType allocator_type)
111 gc::AllocatorType allocator_type)
119 gc::AllocatorType allocator_type)
Dentrypoint_utils-inl.h146 gc::AllocatorType allocator_type) { in AllocObjectFromCode() argument
156 return klass->Alloc<kInstrumented>(self, allocator_type); in AllocObjectFromCode()
164 gc::AllocatorType allocator_type) { in AllocObjectFromCodeResolved() argument
177 return klass->Alloc<kInstrumented, false>(self, allocator_type); in AllocObjectFromCodeResolved()
185 gc::AllocatorType allocator_type) { in AllocObjectFromCodeInitialized() argument
188 return klass->Alloc<kInstrumented, false>(self, allocator_type); in AllocObjectFromCodeInitialized()
234 gc::AllocatorType allocator_type) { in AllocArrayFromCode() argument
248 klass->GetComponentSizeShift(), allocator_type); in AllocArrayFromCode()
257 gc::AllocatorType allocator_type) { in AllocArrayFromCodeResolved() argument
273 klass->GetComponentSizeShift(), allocator_type); in AllocArrayFromCodeResolved()
/art/runtime/mirror/
Dstring-inl.h149 inline String* String::Alloc(Thread* self, int32_t utf16_length, gc::AllocatorType allocator_type, in Alloc() argument
166 allocator_type, pre_fence_visitor)); in Alloc()
172 int32_t high_byte, gc::AllocatorType allocator_type) { in AllocFromByteArray() argument
174 String* string = Alloc<kIsInstrumented>(self, byte_length, allocator_type, visitor); in AllocFromByteArray()
181 gc::AllocatorType allocator_type) { in AllocFromCharArray() argument
183 String* new_string = Alloc<kIsInstrumented>(self, array_length, allocator_type, visitor); in AllocFromCharArray()
189 int32_t offset, gc::AllocatorType allocator_type) { in AllocFromString() argument
191 String* new_string = Alloc<kIsInstrumented>(self, string_length, allocator_type, visitor); in AllocFromString()
Dstring.cc84 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in AllocFromStrings() local
86 String* new_string = Alloc<true>(self, length + length2, allocator_type, visitor); in AllocFromStrings()
98 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in AllocFromUtf16() local
100 String* string = Alloc<true>(self, utf16_length, allocator_type, visitor); in AllocFromUtf16()
117 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in AllocFromModifiedUtf8() local
119 String* string = Alloc<true>(self, utf16_length, allocator_type, visitor); in AllocFromModifiedUtf8()
Dstring.h86 gc::AllocatorType allocator_type,
94 gc::AllocatorType allocator_type)
100 gc::AllocatorType allocator_type)
106 gc::AllocatorType allocator_type)
Dobject_array-inl.h38 int32_t length, gc::AllocatorType allocator_type) { in Alloc() argument
41 allocator_type); in Alloc()
255 gc::AllocatorType allocator_type = heap->IsMovableObject(this) ? heap->GetCurrentAllocator() : in CopyOf() local
257 ObjectArray<T>* new_array = Alloc(self, GetClass(), new_length, allocator_type); in CopyOf()
Darray.cc135 gc::AllocatorType allocator_type = heap->IsMovableObject(this) ? heap->GetCurrentAllocator() : in CopyOf() local
139 Array* new_array = Alloc<true>(self, GetClass(), new_length, component_shift, allocator_type); in CopyOf()
Darray-inl.h154 size_t component_size_shift, gc::AllocatorType allocator_type) { in Alloc() argument
155 DCHECK(allocator_type != gc::kAllocatorTypeLOS); in Alloc()
179 allocator_type, visitor)); in Alloc()
186 allocator_type, visitor)); in Alloc()
Dobject_array.h34 gc::AllocatorType allocator_type)
Darray.h41 size_t component_size_shift, gc::AllocatorType allocator_type)
Dclass-inl.h591 inline Object* Class::Alloc(Thread* self, gc::AllocatorType allocator_type) { in Alloc() argument
600 allocator_type, VoidFunctor()); in Alloc()
Dclass.h481 ALWAYS_INLINE Object* Alloc(Thread* self, gc::AllocatorType allocator_type)
/art/runtime/
Dsafe_map.h39 typedef typename ::std::map<K, V, Comparator, Allocator>::allocator_type allocator_type; typedef
48 explicit SafeMap(const key_compare& cmp, const allocator_type& allocator = allocator_type())
57 allocator_type get_allocator() const { return map_.get_allocator(); } in get_allocator()
DAndroid.mk315 gc/allocator_type.h \
Djni_internal.cc595 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in AllocObject() local
598 allocator_type, visitor)); in AllocObject()
/art/runtime/interpreter/
Dinterpreter_goto_table_impl.cc517 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in ExecuteGotoImpl() local
519 obj = String::Alloc<true>(self, 0, allocator_type, visitor); in ExecuteGotoImpl()
Dinterpreter_switch_impl.cc421 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in ExecuteSwitchImpl() local
423 obj = String::Alloc<true>(self, 0, allocator_type, visitor); in ExecuteSwitchImpl()