/art/runtime/ |
D | indirect_reference_table.h | 62 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 …]
|
D | indirect_reference_table-inl.h | 36 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()
|
D | indirect_reference_table_test.cc | 82 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()
|
D | indirect_reference_table.cc | 177 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()
|
D | thread-inl.h | 54 IndirectRef ref = reinterpret_cast<IndirectRef>(obj); in DecodeJObject()
|
D | reflection.cc | 1066 IndirectRef ref = reinterpret_cast<IndirectRef>(obj); in UpdateReference()
|
D | thread.cc | 2826 IndirectRef ref = reinterpret_cast<IndirectRef>(obj); in DecodeGlobalJObject() 2852 IndirectRef ref = reinterpret_cast<IndirectRef>(obj); in IsJWeakCleared()
|
/art/runtime/jni/ |
D | local_reference_table_test.cc | 91 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 …]
|
D | local_reference_table.h | 271 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_);
|
D | java_vm_ext.h | 170 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)
|
D | local_reference_table-inl.h | 65 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()
|
D | jni_env_ext-inl.h | 53 inline void JNIEnvExt::UpdateLocal(IndirectRef iref, ObjPtr<mirror::Object> obj) { in UpdateLocal()
|
D | java_vm_ext.cc | 701 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()
|
D | jni_env_ext.h | 66 void UpdateLocal(IndirectRef iref, ObjPtr<mirror::Object> obj)
|
D | local_reference_table.cc | 265 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()
|
D | jni_env_ext.cc | 111 locals_.Remove(reinterpret_cast<IndirectRef>(obj)); in DeleteLocalRef()
|
D | jni_internal.cc | 2848 IndirectRef ref = reinterpret_cast<IndirectRef>(java_object); in GetObjectRefType()
|
D | check_jni.cc | 868 IndirectRef ref = reinterpret_cast<IndirectRef>(java_object); in CheckInstance()
|
D | jni_internal_test.cc | 2605 IndirectRef ref = lrt.Add(reinterpret_cast32<mirror::Object*>(0xdeadbee0u), &error_msg); in TEST_F()
|