Home
last modified time | relevance | path

Searched refs:allocator_type (Results 1 – 25 of 37) 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()
62 return AllocObjectFromCodeInitialized<kInstrumented>(klass, self, allocator_type).Ptr(); in artAllocObjectFromCode()
64 return AllocObjectFromCodeResolved<kInstrumented>(klass, self, allocator_type).Ptr(); in artAllocObjectFromCode()
66 return AllocObjectFromCode<kInstrumented>(klass, self, allocator_type).Ptr(); in artAllocObjectFromCode()
70 #define GENERATE_ENTRYPOINTS_FOR_ALLOCATOR_INST(suffix, suffix2, instrumented_bool, allocator_type)… argument
74 return artAllocObjectFromCode<false, true, instrumented_bool, allocator_type>(klass, self); \
79 return artAllocObjectFromCode<false, false, instrumented_bool, allocator_type>(klass, self); \
84 return artAllocObjectFromCode<true, false, instrumented_bool, allocator_type>(klass, self); \
91 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.h174 using allocator_type = Alloc; variable
209 explicit HashSet(const allocator_type& alloc) noexcept in HashSet()
496 allocator_type get_allocator() const { in get_allocator()
/art/runtime/mirror/
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()
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()
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()
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()
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()
Dstring.cc89 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in DoReplace() local
92 ObjPtr<String> string = Alloc(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(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(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(self, utf16_length_with_flag, allocator_type, visitor); in AllocFromModifiedUtf8()
Dstring.h127 gc::AllocatorType allocator_type)
135 gc::AllocatorType allocator_type)
143 gc::AllocatorType allocator_type)
148 gc::AllocatorType allocator_type)
259 gc::AllocatorType allocator_type,
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()
/art/runtime/gc/
Dheap-inl.h285 AllocatorType allocator_type, in TryToAllocate() argument
290 if (allocator_type != kAllocatorTypeRegionTLAB && in TryToAllocate()
291 allocator_type != kAllocatorTypeTLAB && in TryToAllocate()
292 allocator_type != kAllocatorTypeRosAlloc && in TryToAllocate()
293 UNLIKELY(IsOutOfMemoryOnAllocation(allocator_type, alloc_size, kGrow))) { in TryToAllocate()
297 switch (allocator_type) { in TryToAllocate()
313 if (UNLIKELY(IsOutOfMemoryOnAllocation(allocator_type, in TryToAllocate()
324 if (UNLIKELY(IsOutOfMemoryOnAllocation(allocator_type, in TryToAllocate()
397 allocator_type, in TryToAllocate()
428 inline bool Heap::IsOutOfMemoryOnAllocation(AllocatorType allocator_type, in IsOutOfMemoryOnAllocation() argument
[all …]
Dheap.h967 static ALWAYS_INLINE bool AllocatorHasAllocationStack(AllocatorType allocator_type) { in AllocatorHasAllocationStack() argument
969 allocator_type != kAllocatorTypeRegionTLAB && in AllocatorHasAllocationStack()
970 allocator_type != kAllocatorTypeBumpPointer && in AllocatorHasAllocationStack()
971 allocator_type != kAllocatorTypeTLAB && in AllocatorHasAllocationStack()
972 allocator_type != kAllocatorTypeRegion; in AllocatorHasAllocationStack()
974 static ALWAYS_INLINE bool AllocatorMayHaveConcurrentGC(AllocatorType allocator_type) { in AllocatorMayHaveConcurrentGC() argument
980 allocator_type != kAllocatorTypeTLAB && in AllocatorMayHaveConcurrentGC()
981 allocator_type != kAllocatorTypeBumpPointer; in AllocatorMayHaveConcurrentGC()
1047 AllocatorType allocator_type,
1055 AllocatorType allocator_type,
[all …]
Dheap.cc1369 void Heap::ThrowOutOfMemoryError(Thread* self, size_t byte_count, AllocatorType allocator_type) { in ThrowOutOfMemoryError() argument
1388 if (allocator_type == kAllocatorTypeNonMoving) { in ThrowOutOfMemoryError()
1390 } else if (allocator_type == kAllocatorTypeRosAlloc || in ThrowOutOfMemoryError()
1391 allocator_type == kAllocatorTypeDlMalloc) { in ThrowOutOfMemoryError()
1393 } else if (allocator_type == kAllocatorTypeBumpPointer || in ThrowOutOfMemoryError()
1394 allocator_type == kAllocatorTypeTLAB) { in ThrowOutOfMemoryError()
1396 } else if (allocator_type == kAllocatorTypeRegion || in ThrowOutOfMemoryError()
1397 allocator_type == kAllocatorTypeRegionTLAB) { in ThrowOutOfMemoryError()
1402 if (allocator_type != kAllocatorTypeLOS) { in ThrowOutOfMemoryError()
1403 CHECK(space != nullptr) << "allocator_type:" << allocator_type in ThrowOutOfMemoryError()
[all …]
/art/runtime/entrypoints/
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)
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()
/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.h303 const typename Vector::allocator_type& alloc =
304 typename Vector::allocator_type())
/art/runtime/
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()
/art/openjdkjvmti/
Djvmti_weak_table-inl.h250 using allocator_type = Allocator;
252 explicit ReleasableContainer(const allocator_type& alloc, size_t reserve = 10)
/art/runtime/interpreter/mterp/
Dnterp.cc455 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in NterpGetClassOrAllocateObject() local
459 return mirror::String::AllocEmptyString(self, allocator_type).Ptr(); in NterpGetClassOrAllocateObject()
465 return AllocObjectFromCode(c, self, allocator_type).Ptr(); in NterpGetClassOrAllocateObject()

12