Home
last modified time | relevance | path

Searched refs:IndirectRef (Results 1 – 19 of 19) 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.h54 IndirectRef ref = reinterpret_cast<IndirectRef>(obj); in DecodeJObject()
Dreflection.cc1066 IndirectRef ref = reinterpret_cast<IndirectRef>(obj); in UpdateReference()
Dthread.cc2826 IndirectRef ref = reinterpret_cast<IndirectRef>(obj); in DecodeGlobalJObject()
2852 IndirectRef ref = reinterpret_cast<IndirectRef>(obj); in IsJWeakCleared()
/art/runtime/jni/
Dlocal_reference_table_test.cc91 IndirectRef bad_iref = (IndirectRef) 0x11110; in BasicTest()
96 IndirectRef iref0 = lrt.Add(obj0.Get(), &error_msg); in BasicTest()
99 IndirectRef iref1 = lrt.Add(obj1.Get(), &error_msg); in BasicTest()
102 IndirectRef iref2 = lrt.Add(obj2.Get(), &error_msg); in BasicTest()
182 IndirectRef iref3 = lrt.Add(obj3.Get(), &error_msg); in BasicTest()
257 IndirectRef manyRefs[kTableInitial]; in BasicTest()
330 IndirectRef iref0 = lrt.Add(obj0.Get(), &error_msg); in BasicHolesTest()
331 IndirectRef iref1 = lrt.Add(obj1.Get(), &error_msg); in BasicHolesTest()
332 IndirectRef iref2 = lrt.Add(obj2.Get(), &error_msg); in BasicHolesTest()
340 IndirectRef iref3 = lrt.Add(obj3.Get(), &error_msg); in BasicHolesTest()
[all …]
Dlocal_reference_table.h271 EXPORT IndirectRef Add(ObjPtr<mirror::Object> obj, std::string* error_msg)
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(IndirectRef iref)
365 bool IsValidReference(IndirectRef, /*out*/std::string* error_msg) const
400 static IndirectRef ToIndirectRef(LrtEntry* entry) { in ToIndirectRef()
403 return reinterpret_cast<IndirectRef>( in ToIndirectRef()
407 static LrtEntry* ToLrtEntry(IndirectRef iref) { in ToLrtEntry()
445 uint32_t GetReferenceEntryIndex(IndirectRef iref) const;
459 void DCheckValidReference(IndirectRef iref) const REQUIRES_SHARED(Locks::mutator_lock_);
Djava_vm_ext.h170 ObjPtr<mirror::Object> DecodeGlobal(IndirectRef ref)
173 void UpdateGlobal(Thread* self, IndirectRef ref, ObjPtr<mirror::Object> result)
177 ObjPtr<mirror::Object> DecodeWeakGlobal(Thread* self, IndirectRef ref)
181 ObjPtr<mirror::Object> DecodeWeakGlobalLocked(Thread* self, IndirectRef ref)
186 ObjPtr<mirror::Object> DecodeWeakGlobalAsStrong(IndirectRef ref)
192 ObjPtr<mirror::Object> DecodeWeakGlobalDuringShutdown(Thread* self, IndirectRef ref)
197 bool IsWeakGlobalCleared(Thread* self, IndirectRef ref)
201 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.h53 inline void JNIEnvExt::UpdateLocal(IndirectRef iref, ObjPtr<mirror::Object> obj) { in UpdateLocal()
Djava_vm_ext.cc701 IndirectRef ref; in AddGlobalRef()
741 IndirectRef ref = weak_globals_.Add(obj, &error_msg); in AddWeakGlobalRef()
840 ObjPtr<mirror::Object> JavaVMExt::DecodeGlobal(IndirectRef ref) { in DecodeGlobal()
844 void JavaVMExt::UpdateGlobal(Thread* self, IndirectRef ref, ObjPtr<mirror::Object> result) { in UpdateGlobal()
849 ObjPtr<mirror::Object> JavaVMExt::DecodeWeakGlobal(Thread* self, IndirectRef ref) { in DecodeWeakGlobal()
864 ObjPtr<mirror::Object> JavaVMExt::DecodeWeakGlobalLocked(Thread* self, IndirectRef ref) { in DecodeWeakGlobalLocked()
876 ObjPtr<mirror::Object> JavaVMExt::DecodeWeakGlobalAsStrong(IndirectRef ref) { in DecodeWeakGlobalAsStrong()
881 ObjPtr<mirror::Object> JavaVMExt::DecodeWeakGlobalDuringShutdown(Thread* self, IndirectRef ref) { in DecodeWeakGlobalDuringShutdown()
894 bool JavaVMExt::IsWeakGlobalCleared(Thread* self, IndirectRef ref) { in IsWeakGlobalCleared()
905 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(ObjPtr<mirror::Object> obj, std::string* error_msg) { in Add()
280 IndirectRef result = ToIndirectRef(free_entry); in Add()
418 bool LocalReferenceTable::Remove(IndirectRef iref) { in Remove()
Djni_env_ext.cc111 locals_.Remove(reinterpret_cast<IndirectRef>(obj)); in DeleteLocalRef()
Djni_internal.cc2848 IndirectRef ref = reinterpret_cast<IndirectRef>(java_object); in GetObjectRefType()
Dcheck_jni.cc868 IndirectRef ref = reinterpret_cast<IndirectRef>(java_object); in CheckInstance()
Djni_internal_test.cc2605 IndirectRef ref = lrt.Add(reinterpret_cast32<mirror::Object*>(0xdeadbee0u), &error_msg); in TEST_F()