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>
46 allocator_type == gc::kAllocatorTypeTLAB) { in artAllocObjectFromCode()
65 return AllocObjectFromCodeInitialized<kInstrumented>(klass, self, allocator_type).Ptr(); in artAllocObjectFromCode()
67 return AllocObjectFromCodeResolved<kInstrumented>(klass, self, allocator_type).Ptr(); in artAllocObjectFromCode()
69 return AllocObjectFromCode<kInstrumented>(klass, self, allocator_type).Ptr(); in artAllocObjectFromCode()
73 #define GENERATE_ENTRYPOINTS_FOR_ALLOCATOR_INST(suffix, suffix2, instrumented_bool, allocator_type)… argument
77 return artAllocObjectFromCode<false, true, instrumented_bool, allocator_type>(klass, self); \
82 return artAllocObjectFromCode<false, false, instrumented_bool, allocator_type>(klass, self); \
87 return artAllocObjectFromCode<true, false, instrumented_bool, allocator_type>(klass, self); \
94 return mirror::String::AllocEmptyString<instrumented_bool>(self, allocator_type).Ptr(); \
[all …]
/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
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 …]
/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()
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()
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()
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()
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,
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.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 …]
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 …]
Dheap.cc1416 void Heap::ThrowOutOfMemoryError(Thread* self, size_t byte_count, AllocatorType allocator_type) { in ThrowOutOfMemoryError() argument
1435 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()
1450 CHECK(space != nullptr) << "allocator_type:" << allocator_type in ThrowOutOfMemoryError()
[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.cc74 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in String_fastSubstring() local
79 allocator_type); in String_fastSubstring()
/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/openjdkjvmti/
Djvmti_weak_table-inl.h250 using allocator_type = Allocator;
252 explicit ReleasableContainer(const allocator_type& alloc, size_t reserve = 10)
/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/runtime/interpreter/mterp/
Dnterp.cc571 gc::AllocatorType allocator_type = Runtime::Current()->GetHeap()->GetCurrentAllocator(); in NterpGetClassOrAllocateObject() local
575 return mirror::String::AllocEmptyString(self, allocator_type).Ptr(); in NterpGetClassOrAllocateObject()
581 return AllocObjectFromCode(c, self, allocator_type).Ptr(); in NterpGetClassOrAllocateObject()

12