Home
last modified time | relevance | path

Searched refs:IndirectRef (Results 1 – 18 of 18) sorted by relevance

/art/runtime/
Dindirect_reference_table.h62 using IndirectRef = void*; variable
164 IndirectRef Add(ObjPtr<mirror::Object> obj, std::string* error_msg)
171 ObjPtr<mirror::Object> Get(IndirectRef iref) const REQUIRES_SHARED(Locks::mutator_lock_)
175 void Update(IndirectRef iref, ObjPtr<mirror::Object> obj) REQUIRES_SHARED(Locks::mutator_lock_);
184 bool Remove(IndirectRef iref);
217 ALWAYS_INLINE static inline IndirectRefKind GetIndirectRefKind(IndirectRef iref) { in GetIndirectRefKind()
231 static bool IsGlobalOrWeakGlobalReference(IndirectRef iref) { in IsGlobalOrWeakGlobalReference()
235 static bool IsJniTransitionOrLocalReference(IndirectRef iref) { in IsJniTransitionOrLocalReference()
240 static T ClearIndirectRefKind(IndirectRef iref) { in ClearIndirectRefKind()
251 bool IsValidReference(IndirectRef, /*out*/std::string* error_msg) const
[all …]
Dindirect_reference_table-inl.h36 inline bool IndirectReferenceTable::IsValidReference(IndirectRef iref, in IsValidReference()
65 IndirectRef iref, in CheckEntry()
67 IndirectRef checkRef = ToIndirectRef(idx); in CheckEntry()
82 inline ObjPtr<mirror::Object> IndirectReferenceTable::Get(IndirectRef iref) const { in Get()
93 inline void IndirectReferenceTable::Update(IndirectRef iref, ObjPtr<mirror::Object> obj) { in Update()
Dindirect_reference_table_test.cc82 IndirectRef iref0 = (IndirectRef) 0x11110; in TEST_F()
89 IndirectRef iref1 = irt.Add(obj1.Get(), &error_msg); in TEST_F()
92 IndirectRef iref2 = irt.Add(obj2.Get(), &error_msg); in TEST_F()
170 IndirectRef iref3 = irt.Add(obj3.Get(), &error_msg); in TEST_F()
243 IndirectRef manyRefs[kTableInitial]; in TEST_F()
Dindirect_reference_table.cc177 IndirectRef IndirectReferenceTable::Add(ObjPtr<mirror::Object> obj, std::string* error_msg) { in Add()
202 IndirectRef result; in Add()
235 bool IndirectReferenceTable::Remove(IndirectRef iref) { in Remove()
Dthread-inl.h47 IndirectRef ref = reinterpret_cast<IndirectRef>(obj); in DecodeJObject()
Dreflection.cc1065 IndirectRef ref = reinterpret_cast<IndirectRef>(obj); in UpdateReference()
Dthread.cc2783 IndirectRef ref = reinterpret_cast<IndirectRef>(obj); in DecodeGlobalJObject()
2809 IndirectRef ref = reinterpret_cast<IndirectRef>(obj); in IsJWeakCleared()
/art/runtime/jni/
Dlocal_reference_table_test.cc93 IndirectRef bad_iref = (IndirectRef) 0x11110; in BasicTest()
98 IndirectRef iref0 = lrt.Add(cookie, obj0.Get(), &error_msg); in BasicTest()
101 IndirectRef iref1 = lrt.Add(cookie, obj1.Get(), &error_msg); in BasicTest()
104 IndirectRef iref2 = lrt.Add(cookie, obj2.Get(), &error_msg); in BasicTest()
184 IndirectRef iref3 = lrt.Add(cookie, obj3.Get(), &error_msg); in BasicTest()
259 IndirectRef manyRefs[kTableInitial]; in BasicTest()
334 IndirectRef iref0 = lrt.Add(cookie0, obj0.Get(), &error_msg); in BasicHolesTest()
335 IndirectRef iref1 = lrt.Add(cookie0, obj1.Get(), &error_msg); in BasicHolesTest()
336 IndirectRef iref2 = lrt.Add(cookie0, obj2.Get(), &error_msg); in BasicHolesTest()
343 IndirectRef iref3 = lrt.Add(cookie1, obj3.Get(), &error_msg); in BasicHolesTest()
[all …]
Dlocal_reference_table.h269 IndirectRef Add(LRTSegmentState previous_state,
279 ObjPtr<mirror::Object> Get(IndirectRef iref) const
284 void Update(IndirectRef iref, ObjPtr<mirror::Object> obj) REQUIRES_SHARED(Locks::mutator_lock_);
293 bool Remove(LRTSegmentState previous_state, IndirectRef iref)
347 bool IsValidReference(IndirectRef, /*out*/std::string* error_msg) const
380 static IndirectRef ToIndirectRef(LrtEntry* entry) { in ToIndirectRef()
383 return reinterpret_cast<IndirectRef>( in ToIndirectRef()
387 static LrtEntry* ToLrtEntry(IndirectRef iref) { in ToLrtEntry()
425 uint32_t GetReferenceEntryIndex(IndirectRef iref) const;
439 void DCheckValidReference(IndirectRef iref) const REQUIRES_SHARED(Locks::mutator_lock_);
Djava_vm_ext.h172 ObjPtr<mirror::Object> DecodeGlobal(IndirectRef ref)
175 void UpdateGlobal(Thread* self, IndirectRef ref, ObjPtr<mirror::Object> result)
179 ObjPtr<mirror::Object> DecodeWeakGlobal(Thread* self, IndirectRef ref)
183 ObjPtr<mirror::Object> DecodeWeakGlobalLocked(Thread* self, IndirectRef ref)
188 ObjPtr<mirror::Object> DecodeWeakGlobalAsStrong(IndirectRef ref)
194 ObjPtr<mirror::Object> DecodeWeakGlobalDuringShutdown(Thread* self, IndirectRef ref)
199 bool IsWeakGlobalCleared(Thread* self, IndirectRef ref)
203 void UpdateWeakGlobal(Thread* self, IndirectRef ref, ObjPtr<mirror::Object> result)
Dlocal_reference_table-inl.h65 inline uint32_t LocalReferenceTable::GetReferenceEntryIndex(IndirectRef iref) const { in GetReferenceEntryIndex()
89 inline bool LocalReferenceTable::IsValidReference(IndirectRef iref, in IsValidReference()
131 inline void LocalReferenceTable::DCheckValidReference(IndirectRef iref) const { in DCheckValidReference()
141 inline ObjPtr<mirror::Object> LocalReferenceTable::Get(IndirectRef iref) const { in Get()
146 inline void LocalReferenceTable::Update(IndirectRef iref, ObjPtr<mirror::Object> obj) { in Update()
Djni_env_ext-inl.h30 IndirectRef ref = locals_.Add(local_ref_cookie_, obj, &error_msg); in AddLocalReference()
53 inline void JNIEnvExt::UpdateLocal(IndirectRef iref, ObjPtr<mirror::Object> obj) { in UpdateLocal()
Djava_vm_ext.cc694 IndirectRef ref; in AddGlobalRef()
734 IndirectRef ref = weak_globals_.Add(obj, &error_msg); in AddWeakGlobalRef()
833 ObjPtr<mirror::Object> JavaVMExt::DecodeGlobal(IndirectRef ref) { in DecodeGlobal()
837 void JavaVMExt::UpdateGlobal(Thread* self, IndirectRef ref, ObjPtr<mirror::Object> result) { in UpdateGlobal()
842 ObjPtr<mirror::Object> JavaVMExt::DecodeWeakGlobal(Thread* self, IndirectRef ref) { in DecodeWeakGlobal()
857 ObjPtr<mirror::Object> JavaVMExt::DecodeWeakGlobalLocked(Thread* self, IndirectRef ref) { in DecodeWeakGlobalLocked()
869 ObjPtr<mirror::Object> JavaVMExt::DecodeWeakGlobalAsStrong(IndirectRef ref) { in DecodeWeakGlobalAsStrong()
874 ObjPtr<mirror::Object> JavaVMExt::DecodeWeakGlobalDuringShutdown(Thread* self, IndirectRef ref) { in DecodeWeakGlobalDuringShutdown()
887 bool JavaVMExt::IsWeakGlobalCleared(Thread* self, IndirectRef ref) { in IsWeakGlobalCleared()
898 void JavaVMExt::UpdateWeakGlobal(Thread* self, IndirectRef ref, ObjPtr<mirror::Object> result) { in UpdateWeakGlobal()
Djni_env_ext.h66 void UpdateLocal(IndirectRef iref, ObjPtr<mirror::Object> obj)
Dlocal_reference_table.cc265 IndirectRef LocalReferenceTable::Add(LRTSegmentState previous_state, in Add()
282 IndirectRef result = ToIndirectRef(free_entry); in Add()
420 bool LocalReferenceTable::Remove(LRTSegmentState previous_state, IndirectRef iref) { in Remove()
Djni_env_ext.cc112 locals_.Remove(local_ref_cookie_, reinterpret_cast<IndirectRef>(obj)); in DeleteLocalRef()
Dcheck_jni.cc870 IndirectRef ref = reinterpret_cast<IndirectRef>(java_object); in CheckInstance()
Djni_internal.cc2839 IndirectRef ref = reinterpret_cast<IndirectRef>(java_object); in GetObjectRefType()