Home
last modified time | relevance | path

Searched refs:GcRoot (Results 1 – 25 of 70) sorted by relevance

123

/art/runtime/mirror/
Dmethod.cc27 GcRoot<Class> Method::static_class_;
28 GcRoot<Class> Method::array_class_;
29 GcRoot<Class> Constructor::static_class_;
30 GcRoot<Class> Constructor::array_class_;
35 static_class_ = GcRoot<Class>(klass); in SetClass()
40 static_class_ = GcRoot<Class>(nullptr); in ResetClass()
46 array_class_ = GcRoot<Class>(klass); in SetArrayClass()
51 array_class_ = GcRoot<Class>(nullptr); in ResetArrayClass()
75 static_class_ = GcRoot<Class>(klass); in SetClass()
80 static_class_ = GcRoot<Class>(nullptr); in ResetClass()
[all …]
Dfield.cc27 GcRoot<Class> Field::static_class_;
28 GcRoot<Class> Field::array_class_;
33 static_class_ = GcRoot<Class>(klass); in SetClass()
38 static_class_ = GcRoot<Class>(nullptr); in ResetClass()
44 array_class_ = GcRoot<Class>(klass); in SetArrayClass()
49 array_class_ = GcRoot<Class>(nullptr); in ResetArrayClass()
Ddex_cache-inl.h45 GetStrings()[string_idx] = GcRoot<String>(resolved); in SetResolvedString()
58 GetResolvedTypes()[type_idx] = GcRoot<Class>(resolved); in SetResolvedType()
133 GcRoot<mirror::String>* strings = GetStrings(); in VisitReferences()
137 GcRoot<mirror::Class>* resolved_types = GetResolvedTypes(); in VisitReferences()
145 inline void DexCache::FixupStrings(GcRoot<mirror::String>* dest, const Visitor& visitor) { in FixupStrings()
146 GcRoot<mirror::String>* src = GetStrings(); in FixupStrings()
150 dest[i] = GcRoot<mirror::String>(new_source); in FixupStrings()
155 inline void DexCache::FixupResolvedTypes(GcRoot<mirror::Class>* dest, const Visitor& visitor) { in FixupResolvedTypes()
156 GcRoot<mirror::Class>* src = GetResolvedTypes(); in FixupResolvedTypes()
160 dest[i] = GcRoot<mirror::Class>(new_source); in FixupResolvedTypes()
Dreference.cc25 GcRoot<Class> Reference::java_lang_ref_Reference_;
30 java_lang_ref_Reference_ = GcRoot<Class>(java_lang_ref_Reference); in SetClass()
35 java_lang_ref_Reference_ = GcRoot<Class>(nullptr); in ResetClass()
Ddex_cache.h51 GcRoot<String>* strings,
53 GcRoot<Class>* resolved_types,
65 void FixupStrings(GcRoot<mirror::String>* dest, const Visitor& visitor)
69 void FixupResolvedTypes(GcRoot<mirror::Class>* dest, const Visitor& visitor)
136 GcRoot<String>* GetStrings() ALWAYS_INLINE SHARED_REQUIRES(Locks::mutator_lock_) { in GetStrings()
137 return GetFieldPtr<GcRoot<String>*>(StringsOffset()); in GetStrings()
140 void SetStrings(GcRoot<String>* strings) ALWAYS_INLINE SHARED_REQUIRES(Locks::mutator_lock_) { in SetStrings()
144 GcRoot<Class>* GetResolvedTypes() ALWAYS_INLINE SHARED_REQUIRES(Locks::mutator_lock_) { in GetResolvedTypes()
145 return GetFieldPtr<GcRoot<Class>*>(ResolvedTypesOffset()); in GetResolvedTypes()
148 void SetResolvedTypes(GcRoot<Class>* resolved_types) in SetResolvedTypes()
Dmethod.h54 static GcRoot<Class> static_class_; // java.lang.reflect.Method.class.
55 static GcRoot<Class> array_class_; // [java.lang.reflect.Method.class.
86 static GcRoot<Class> static_class_; // java.lang.reflect.Constructor.class.
87 static GcRoot<Class> array_class_; // [java.lang.reflect.Constructor.class.
Dstack_trace_element.cc29 GcRoot<Class> StackTraceElement::java_lang_StackTraceElement_;
34 java_lang_StackTraceElement_ = GcRoot<Class>(java_lang_StackTraceElement); in SetClass()
39 java_lang_StackTraceElement_ = GcRoot<Class>(nullptr); in ResetClass()
Ddex_cache.cc36 GcRoot<String>* strings, in Init()
38 GcRoot<Class>* resolved_types, in Init()
Dthrowable.cc33 GcRoot<Class> Throwable::java_lang_Throwable_;
155 java_lang_Throwable_ = GcRoot<Class>(java_lang_Throwable); in SetClass()
160 java_lang_Throwable_ = GcRoot<Class>(nullptr); in ResetClass()
/art/runtime/
Dclass_table.h45 uint32_t operator()(const GcRoot<mirror::Class>& root) const NO_THREAD_SAFETY_ANALYSIS;
47 bool operator()(const GcRoot<mirror::Class>& a, const GcRoot<mirror::Class>& b) const
50 bool operator()(const GcRoot<mirror::Class>& a, const char* descriptor) const
57 void MakeEmpty(GcRoot<mirror::Class>& item) const { in MakeEmpty()
58 item = GcRoot<mirror::Class>(); in MakeEmpty()
60 bool IsEmpty(const GcRoot<mirror::Class>& item) const { in IsEmpty()
66 typedef HashSet<GcRoot<mirror::Class>, GcRootEmptyFn, ClassDescriptorHashEquals,
67 ClassDescriptorHashEquals, TrackingAllocator<GcRoot<mirror::Class>, kAllocatorTagClassTable>>
173 std::vector<GcRoot<mirror::Object>> strong_roots_ GUARDED_BY(lock_);
Dclass_table-inl.h28 for (GcRoot<mirror::Class>& root : class_set) { in VisitRoots()
32 for (GcRoot<mirror::Object>& root : strong_roots_) { in VisitRoots()
41 for (GcRoot<mirror::Class>& root : class_set) { in VisitRoots()
45 for (GcRoot<mirror::Object>& root : strong_roots_) { in VisitRoots()
54 for (GcRoot<mirror::Class>& root : class_set) { in Visit()
Dclass_table.cc37 auto it = class_set.Find(GcRoot<mirror::Class>(klass)); in Contains()
48 auto it = class_set.Find(GcRoot<mirror::Class>(klass)); in LookupByDescriptor()
76 *existing_it = GcRoot<mirror::Class>(klass); in UpdateClass()
107 classes_.back().Insert(GcRoot<mirror::Class>(klass)); in Insert()
112 classes_.back().InsertWithHash(GcRoot<mirror::Class>(klass), hash); in InsertWithHash()
127 uint32_t ClassTable::ClassDescriptorHashEquals::operator()(const GcRoot<mirror::Class>& root) in operator ()()
133 bool ClassTable::ClassDescriptorHashEquals::operator()(const GcRoot<mirror::Class>& a, in operator ()()
134 const GcRoot<mirror::Class>& b) const { in operator ()()
140 bool ClassTable::ClassDescriptorHashEquals::operator()(const GcRoot<mirror::Class>& a, in operator ()()
152 for (GcRoot<mirror::Object>& root : strong_roots_) { in InsertStrongRoot()
[all …]
Dgc_root-inl.h30 inline MirrorType* GcRoot<MirrorType>::Read(GcRootSource* gc_root_source) const { in Read()
35 inline GcRoot<MirrorType>::GcRoot(MirrorType* ref) in GcRoot() function
Dintern_table.h160 std::size_t operator()(const GcRoot<mirror::String>& root) const NO_THREAD_SAFETY_ANALYSIS;
161 bool operator()(const GcRoot<mirror::String>& a, const GcRoot<mirror::String>& b) const
166 bool operator()(const GcRoot<mirror::String>& a, const Utf8String& b) const
171 void MakeEmpty(GcRoot<mirror::String>& item) const { in MakeEmpty()
172 item = GcRoot<mirror::String>(); in MakeEmpty()
174 bool IsEmpty(const GcRoot<mirror::String>& item) const { in IsEmpty()
210 typedef HashSet<GcRoot<mirror::String>, GcRootEmptyFn, StringHashEquals, StringHashEquals,
211 TrackingAllocator<GcRoot<mirror::String>, kAllocatorTagInternTable>> UnorderedSet;
271 std::vector<GcRoot<mirror::String>> new_strong_intern_roots_
Dindirect_reference_table.h207 references_[serial_] = GcRoot<mirror::Object>(obj); in Add()
209 GcRoot<mirror::Object>* GetReference() { in GetReference()
218 references_[serial_] = GcRoot<mirror::Object>(obj); in SetReference()
223 GcRoot<mirror::Object> references_[kIRTPrevCount];
239 GcRoot<mirror::Object>* operator*() {
Dreference_table.cc49 entries_.push_back(GcRoot<mirror::Object>(obj)); in Add()
121 bool operator()(GcRoot<mirror::Object> root1, GcRoot<mirror::Object> root2) const in Dump()
201 for (GcRoot<mirror::Object>& root : entries) { in Dump()
216 for (GcRoot<mirror::Object>& root : sorted_entries) { in Dump()
242 for (GcRoot<mirror::Object>& root : entries_) { in VisitRoots()
Dreference_table.h56 typedef std::vector<GcRoot<mirror::Object>,
57 TrackingAllocator<GcRoot<mirror::Object>, kAllocatorTagReferenceTable>> Table;
Dintern_table.cc131 new_strong_intern_roots_.push_back(GcRoot<mirror::String>(s)); in InsertStrong()
364 std::size_t InternTable::StringHashEquals::operator()(const GcRoot<mirror::String>& root) const { in operator ()()
371 bool InternTable::StringHashEquals::operator()(const GcRoot<mirror::String>& a, in operator ()()
372 const GcRoot<mirror::String>& b) const { in operator ()()
379 bool InternTable::StringHashEquals::operator()(const GcRoot<mirror::String>& a, in operator ()()
403 for (GcRoot<mirror::String>& string : set) { in AddTableFromMemory()
421 for (GcRoot<mirror::String>& string : table) { in WriteToMemory()
433 auto it = table.Find(GcRoot<mirror::String>(s)); in Remove()
445 auto it = table.Find(GcRoot<mirror::String>(s)); in Find()
472 tables_.back().Insert(GcRoot<mirror::String>(s)); in Insert()
[all …]
Dart_method-inl.h66 declaring_class_ = GcRoot<mirror::Class>(new_declaring_class); in SetDeclaringClass()
71 GcRoot<mirror::Class> expected_root(expected_class); in CASDeclaringClass()
72 GcRoot<mirror::Class> desired_root(desired_class); in CASDeclaringClass()
73 return reinterpret_cast<Atomic<GcRoot<mirror::Class>>*>(&declaring_class_)-> in CASDeclaringClass()
174 inline GcRoot<mirror::Class>* ArtMethod::GetDexCacheResolvedTypes(size_t pointer_size) { in GetDexCacheResolvedTypes()
175 return GetNativePointer<GcRoot<mirror::Class>*>(DexCacheResolvedTypesOffset(pointer_size), in GetDexCacheResolvedTypes()
197 inline bool ArtMethod::HasSameDexCacheResolvedTypes(GcRoot<mirror::Class>* other_cache, in HasSameDexCacheResolvedTypes()
422 inline void ArtMethod::SetDexCacheResolvedTypes(GcRoot<mirror::Class>* new_dex_cache_types, in SetDexCacheResolvedTypes()
489 GcRoot<mirror::Class>* old_types = GetDexCacheResolvedTypes(pointer_size); in UpdateObjectsForImageRelocation()
490 GcRoot<mirror::Class>* new_types = visitor(old_types); in UpdateObjectsForImageRelocation()
Dgc_root.h168 class GcRoot {
198 ALWAYS_INLINE GcRoot(MirrorType* ref = nullptr) SHARED_REQUIRES(Locks::mutator_lock_);
224 ALWAYS_INLINE void VisitRootIfNonNull(GcRoot<MirrorType>& root) in VisitRootIfNonNull()
240 void VisitRoot(GcRoot<MirrorType>& root) SHARED_REQUIRES(Locks::mutator_lock_) { in VisitRoot()
/art/runtime/utils/
Ddex_cache_arrays_layout-inl.h51 static_assert(alignof(GcRoot<mirror::Class>) == 4, "Expecting alignof(GcRoot<>) == 4"); in Alignment()
52 static_assert(alignof(GcRoot<mirror::String>) == 4, "Expecting alignof(GcRoot<>) == 4"); in Alignment()
59 return types_offset_ + ElementOffset(sizeof(GcRoot<mirror::Class>), type_idx); in TypeOffset()
65 return std::max(ArraySize(sizeof(GcRoot<mirror::Class>), num_elements), pointer_size_); in TypesSize()
69 return alignof(GcRoot<mirror::Class>); in TypesAlignment()
86 return strings_offset_ + ElementOffset(sizeof(GcRoot<mirror::String>), string_idx); in StringOffset()
90 return ArraySize(sizeof(GcRoot<mirror::String>), num_elements); in StringsSize()
94 return alignof(GcRoot<mirror::String>); in StringsAlignment()
/art/runtime/jit/
Dprofiling_info.cc87 GcRoot<mirror::Class> expected_root(nullptr); in AddInvokeInfo()
88 GcRoot<mirror::Class> desired_root(cls); in AddInvokeInfo()
89 if (!reinterpret_cast<Atomic<GcRoot<mirror::Class>>*>(&cache->classes_[i])-> in AddInvokeInfo()
/art/runtime/entrypoints/quick/
Dquick_entrypoints.h39 template<class MirrorType> class GcRoot; variable
97 extern "C" mirror::Object* artReadBarrierForRootSlow(GcRoot<mirror::Object>* root)
/art/runtime/gc/
Dallocation_record.h184 GcRoot<mirror::Class>& GetClassGcRoot() SHARED_REQUIRES(Locks::mutator_lock_) { in GetClassGcRoot()
195 GcRoot<mirror::Class> klass_;
207 using EntryPair = std::pair<GcRoot<mirror::Object>, AllocRecord>;
229 entries_.push_back(EntryPair(GcRoot<mirror::Object>(obj), std::move(record))); in Put()
Dallocation_record.cc123 GcRoot<mirror::Class>& klass = record->GetClassGcRoot(); in SweepClassObject()
132 klass = GcRoot<mirror::Class>(new_object->AsClass()); in SweepClassObject()
150 it->first = GcRoot<mirror::Object>(nullptr); in SweepAllocationRecords()
159 it->first = GcRoot<mirror::Object>(new_object); in SweepAllocationRecords()

123