Home
last modified time | relevance | path

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

123

/art/runtime/
Dgc_root-inl.h31 inline MirrorType* GcRoot<MirrorType>::Read(GcRootSource* gc_root_source) const { in Read()
37 inline GcRoot<MirrorType>::GcRoot(MirrorType* ref) in GcRoot() function
41 inline GcRoot<MirrorType>::GcRoot(ObjPtr<MirrorType> ref) in GcRoot() function
42 : GcRoot(ref.Ptr()) { } in GcRoot()
Dclass_table-inl.h37 for (GcRoot<mirror::Object>& root : strong_roots_) { in VisitRoots()
41 for (GcRoot<mirror::Object>& root : oat_file->GetBssGcRoots()) { in VisitRoots()
55 for (GcRoot<mirror::Object>& root : strong_roots_) { in VisitRoots()
59 for (GcRoot<mirror::Object>& root : oat_file->GetBssGcRoots()) { in VisitRoots()
96 GcRoot<mirror::Class>(before_ptr).Read<kReadBarrierOption>()); in Read()
109 GcRoot<mirror::Class> root(before_ptr); in VisitRoot()
Dgc_root.h186 class GcRoot {
216 ALWAYS_INLINE GcRoot() {} in GcRoot() function
217 explicit ALWAYS_INLINE GcRoot(MirrorType* ref)
219 explicit ALWAYS_INLINE GcRoot(ObjPtr<MirrorType> ref)
246 ALWAYS_INLINE void VisitRootIfNonNull(GcRoot<MirrorType>& root) in VisitRootIfNonNull()
262 void VisitRoot(GcRoot<MirrorType>& root) REQUIRES_SHARED(Locks::mutator_lock_) { in VisitRoot()
293 ALWAYS_INLINE void VisitRootIfNonNull(GcRoot<MirrorType>& root) const in VisitRootIfNonNull()
309 void VisitRoot(GcRoot<MirrorType>& root) const REQUIRES_SHARED(Locks::mutator_lock_) { in VisitRoot()
Dintern_table.h80 std::size_t operator()(const GcRoot<mirror::String>& root) const NO_THREAD_SAFETY_ANALYSIS;
81 bool operator()(const GcRoot<mirror::String>& a, const GcRoot<mirror::String>& b) const
90 bool operator()(const GcRoot<mirror::String>& a, const Utf8String& b) const
96 void MakeEmpty(GcRoot<mirror::String>& item) const { in MakeEmpty()
97 item = GcRoot<mirror::String>(); in MakeEmpty()
99 bool IsEmpty(const GcRoot<mirror::String>& item) const { in IsEmpty()
104 using UnorderedSet = HashSet<GcRoot<mirror::String>,
108 TrackingAllocator<GcRoot<mirror::String>, kAllocatorTagInternTable>>;
329 std::vector<GcRoot<mirror::String>> new_strong_intern_roots_
Dreference_table.cc56 entries_.push_back(GcRoot<mirror::Object>(obj)); in Add()
128 bool operator()(GcRoot<mirror::Object> root1, GcRoot<mirror::Object> root2) const in Dump()
222 GcRoot<mirror::Object>& stack_for_object = it->first; in Dump()
263 for (GcRoot<mirror::Object>& root : entries) { in Dump()
275 GcRoot<mirror::Object> root; in Dump()
288 void Reset(GcRoot<mirror::Object>& _root) { in Dump()
298 for (GcRoot<mirror::Object>& root : sorted_entries) { in Dump()
358 for (GcRoot<mirror::Object>& root : entries_) { in VisitRoots()
Dreference_table.h58 typedef std::vector<GcRoot<mirror::Object>,
59 TrackingAllocator<GcRoot<mirror::Object>, kAllocatorTagReferenceTable>> Table;
Dintern_table.cc133 new_strong_intern_roots_.push_back(GcRoot<mirror::String>(s)); in InsertStrong()
300 std::size_t InternTable::StringHashEquals::operator()(const GcRoot<mirror::String>& root) const { in operator ()()
309 bool InternTable::StringHashEquals::operator()(const GcRoot<mirror::String>& a, in operator ()()
310 const GcRoot<mirror::String>& b) const { in operator ()()
317 bool InternTable::StringHashEquals::operator()(const GcRoot<mirror::String>& a, in operator ()()
355 for (GcRoot<mirror::String>& string : table.set_) { in WriteToMemory()
367 auto it = table.set_.find(GcRoot<mirror::String>(s)); in Remove()
379 auto it = table.set_.find(GcRoot<mirror::String>(s)); in Find()
406 tables_.back().set_.insert(GcRoot<mirror::String>(s)); in Insert()
433 *it = GcRoot<mirror::String>(new_object->AsString()); in SweepWeaks()
Dindirect_reference_table-inl.h114 references_[serial_] = GcRoot<mirror::Object>(obj); in Add()
119 references_[serial_] = GcRoot<mirror::Object>(obj); in SetReference()
Dindirect_reference_table.h161 GcRoot<mirror::Object>* GetReference() { in GetReference()
166 const GcRoot<mirror::Object>* GetReference() const { in GetReference()
179 GcRoot<mirror::Object> references_[kIRTPrevCount];
198 GcRoot<mirror::Object>* operator*() REQUIRES_SHARED(Locks::mutator_lock_) { in REQUIRES_SHARED()
Dart_method-inl.h70 declaring_class_ = GcRoot<mirror::Class>(new_declaring_class); in SetDeclaringClass()
75 GcRoot<mirror::Class> expected_root(expected_class); in CASDeclaringClass()
76 GcRoot<mirror::Class> desired_root(desired_class); in CASDeclaringClass()
77 auto atomic_root_class = reinterpret_cast<Atomic<GcRoot<mirror::Class>>*>(&declaring_class_); in CASDeclaringClass()
Dclass_table_test.cc39 ALWAYS_INLINE void VisitRootIfNonNull(GcRoot<MirrorType>& root) const in VisitRootIfNonNull()
55 void VisitRoot(GcRoot<MirrorType>& root) const REQUIRES_SHARED(Locks::mutator_lock_) { in VisitRoot()
Druntime.h722 GcRoot<mirror::Object> GetSentinel() REQUIRES_SHARED(Locks::mutator_lock_);
930 GcRoot<mirror::Throwable> pre_allocated_OutOfMemoryError_when_throwing_exception_;
931 GcRoot<mirror::Throwable> pre_allocated_OutOfMemoryError_when_throwing_oome_;
932 GcRoot<mirror::Throwable> pre_allocated_OutOfMemoryError_when_handling_stack_overflow_;
933 GcRoot<mirror::Throwable> pre_allocated_NoClassDefFoundError_;
942 GcRoot<mirror::Object> sentinel_;
/art/runtime/entrypoints/quick/
Dquick_dexcache_entrypoints.cc40 static_assert(sizeof(GcRoot<mirror::Class>) == sizeof(GcRoot<mirror::Object>), "Size check."); in StoreObjectInBss()
41 static_assert(sizeof(GcRoot<mirror::String>) == sizeof(GcRoot<mirror::Object>), "Size check."); in StoreObjectInBss()
43 DCHECK_ALIGNED(bss_offset, sizeof(GcRoot<mirror::Object>)); in StoreObjectInBss()
50 GcRoot<mirror::Object>* slot = reinterpret_cast<GcRoot<mirror::Object>*>( in StoreObjectInBss()
56 *slot = GcRoot<mirror::Object>(object); in StoreObjectInBss()
88 sizeof(GcRoot<mirror::Class>)); in StoreTypeInBss()
106 sizeof(GcRoot<mirror::Class>)); in StoreStringInBss()
Dquick_entrypoints.h40 template<class MirrorType> class GcRoot; variable
107 extern "C" mirror::Object* artReadBarrierForRootSlow(GcRoot<mirror::Object>* root)
/art/runtime/gc/
Dsystem_weak_test.cc79 weak_ = GcRoot<mirror::Object>(new_object); in Sweep()
84 GcRoot<mirror::Object> Get() in Get()
94 void Set(GcRoot<mirror::Object> obj) in Set()
107 GcRoot<mirror::Object> weak_ GUARDED_BY(allow_disallow_lock_);
145 cswh.Set(GcRoot<mirror::Object>(s.Get())); in TEST_F()
166 cswh.Set(GcRoot<mirror::Object>(mirror::String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
190 cswh.Set(GcRoot<mirror::Object>(s.Get())); in TEST_F()
Dallocation_record.cc78 GcRoot<mirror::Class>& klass = record->GetClassGcRoot(); in SweepClassObject()
87 klass = GcRoot<mirror::Class>(new_object->AsClass()); in SweepClassObject()
105 it->first = GcRoot<mirror::Object>(nullptr); in SweepAllocationRecords()
114 it->first = GcRoot<mirror::Object>(new_object); in SweepAllocationRecords()
Dallocation_record.h185 GcRoot<mirror::Class>& GetClassGcRoot() REQUIRES_SHARED(Locks::mutator_lock_) { in GetClassGcRoot()
196 GcRoot<mirror::Class> klass_;
213 using EntryPair = std::pair<GcRoot<mirror::Object>, AllocRecord>;
235 entries_.push_back(EntryPair(GcRoot<mirror::Object>(obj), std::move(record))); in Put()
/art/runtime/mirror/
Ddex_cache-inl.h51 first_elem.object = GcRoot<T>(nullptr); in Initialize()
89 GcRoot<mirror::String>* preresolved_strings = GetPreResolvedStrings(); in GetResolvedString()
121 GetPreResolvedStrings()[string_idx.index_] = GcRoot<mirror::String>(resolved); in SetPreResolvedString()
133 GcRoot<mirror::String>*>(PreResolvedStringsOffset(), nullptr); in ClearPreResolvedStrings()
212 GcRoot<mirror::CallSite>& target = GetResolvedCallSites()[call_site_idx]; in GetResolvedCallSite()
213 Atomic<GcRoot<mirror::CallSite>>& ref = in GetResolvedCallSite()
214 reinterpret_cast<Atomic<GcRoot<mirror::CallSite>>&>(target); in GetResolvedCallSite()
223 GcRoot<mirror::CallSite> null_call_site(nullptr); in SetResolvedCallSite()
224 GcRoot<mirror::CallSite> candidate(call_site); in SetResolvedCallSite()
225 GcRoot<mirror::CallSite>& target = GetResolvedCallSites()[call_site_idx]; in SetResolvedCallSite()
[all …]
Ddex_cache.h50 GcRoot<T> object;
209 void FixupResolvedCallSites(GcRoot<mirror::CallSite>* dest, const Visitor& visitor)
271 return alignof(GcRoot<mirror::String>); in PreResolvedStringsAlignment()
340 GcRoot<mirror::String>* GetPreResolvedStrings() ALWAYS_INLINE in GetPreResolvedStrings()
342 return GetFieldPtr64<GcRoot<mirror::String>*, kVerifyFlags>(PreResolvedStringsOffset()); in GetPreResolvedStrings()
349 void SetPreResolvedStrings(GcRoot<mirror::String>* strings) in SetPreResolvedStrings()
398 GcRoot<CallSite>* GetResolvedCallSites() in GetResolvedCallSites()
401 return GetFieldPtr<GcRoot<CallSite>*, kVerifyFlags>(ResolvedCallSitesOffset()); in GetResolvedCallSites()
404 void SetResolvedCallSites(GcRoot<CallSite>* resolved_call_sites) in SetResolvedCallSites()
467 return sizeof(GcRoot<mirror::String>) * num_strings; in PreResolvedStringsSize()
[all …]
Ddex_cache.cc106 GcRoot<mirror::CallSite>* call_sites = (dex_file->NumCallSiteIds() == 0) in InitializeDexCache()
108 : reinterpret_cast<GcRoot<CallSite>*>(raw_arrays + layout.CallSitesOffset()); in InitializeDexCache()
180 GcRoot<mirror::String>* strings = in AddPreResolvedStringsArray()
181 linear_alloc->AllocArray<GcRoot<mirror::String>>(self, num_strings); in AddPreResolvedStringsArray()
208 GcRoot<CallSite>* resolved_call_sites, in Init()
/art/runtime/jit/
Dprofiling_info.cc95 GcRoot<mirror::Class> expected_root(existing); in AddInvokeInfo()
96 GcRoot<mirror::Class> desired_root(cls); in AddInvokeInfo()
97 auto atomic_root = reinterpret_cast<Atomic<GcRoot<mirror::Class>>*>(&cache->classes_[i]); in AddInvokeInfo()
Dprofiling_info.h46 GcRoot<mirror::Class> classes_[kIndividualCacheSize];
107 InlineCache::kIndividualCacheSize * sizeof(GcRoot<mirror::Class>)); in ClearGcRootsInInlineCaches()
/art/openjdkjvmti/
Djvmti_weak_table.h147 auto it = tagged_objects_.find(art::GcRoot<art::mirror::Object>(obj)); in GetTagLocked()
199 size_t operator()(const art::GcRoot<art::mirror::Object>& r) const in operator()
206 bool operator()(const art::GcRoot<art::mirror::Object>& r1, in operator()
207 const art::GcRoot<art::mirror::Object>& r2) const in operator()
213 using TagAllocator = JvmtiAllocator<std::pair<const art::GcRoot<art::mirror::Object>, T>>;
214 std::unordered_map<art::GcRoot<art::mirror::Object>,
Djvmti_weak_table-inl.h70 auto WithReadBarrierUpdater = [&](const art::GcRoot<art::mirror::Object>& original_root, in UpdateTableWithReadBarrier()
108 auto it = tagged_objects_.find(art::GcRoot<art::mirror::Object>(obj)); in RemoveLocked()
153 auto it = tagged_objects_.find(art::GcRoot<art::mirror::Object>(obj)); in SetLocked()
173 auto insert_it = tagged_objects_.emplace(art::GcRoot<art::mirror::Object>(obj), new_tag); in SetLocked()
201 auto IsMarkedUpdater = [&](const art::GcRoot<art::mirror::Object>& original_root ATTRIBUTE_UNUSED, in SweepImpl()
232 tagged_objects_.emplace(art::GcRoot<art::mirror::Object>(target_obj), tag); in UpdateTableWith()
/art/runtime/utils/
Ddex_cache_arrays_layout-inl.h74 static_assert(sizeof(GcRoot<T>) == 4U, "Unexpected GcRoot size"); in GcRootAsPointerSize()
92 return alignof(GcRoot<mirror::Class>); in TypesAlignment()
167 return alignof(GcRoot<mirror::CallSite>); in CallSitesAlignment()

123