Lines Matching refs:ref

668   IndirectRef ref;  in AddGlobalRef()  local
672 ref = globals_.Add(kIRTFirstSegment, obj, &error_msg); in AddGlobalRef()
674 if (UNLIKELY(ref == nullptr)) { in AddGlobalRef()
679 return reinterpret_cast<jobject>(ref); in AddGlobalRef()
697 IndirectRef ref = weak_globals_.Add(kIRTFirstSegment, obj, &error_msg); in AddWeakGlobalRef() local
698 if (UNLIKELY(ref == nullptr)) { in AddWeakGlobalRef()
702 return reinterpret_cast<jweak>(ref); in AddWeakGlobalRef()
793 ObjPtr<mirror::Object> JavaVMExt::DecodeGlobal(IndirectRef ref) { in DecodeGlobal() argument
794 return globals_.SynchronizedGet(ref); in DecodeGlobal()
797 void JavaVMExt::UpdateGlobal(Thread* self, IndirectRef ref, ObjPtr<mirror::Object> result) { in UpdateGlobal() argument
799 globals_.Update(ref, result); in UpdateGlobal()
813 ObjPtr<mirror::Object> JavaVMExt::DecodeWeakGlobal(Thread* self, IndirectRef ref) { in DecodeWeakGlobal() argument
820 DCHECK_EQ(IndirectReferenceTable::GetIndirectRefKind(ref), kWeakGlobal); in DecodeWeakGlobal()
822 return weak_globals_.SynchronizedGet(ref); in DecodeWeakGlobal()
825 return DecodeWeakGlobalLocked(self, ref); in DecodeWeakGlobal()
828 ObjPtr<mirror::Object> JavaVMExt::DecodeWeakGlobalLocked(Thread* self, IndirectRef ref) { in DecodeWeakGlobalLocked() argument
838 return weak_globals_.Get(ref); in DecodeWeakGlobalLocked()
841 ObjPtr<mirror::Object> JavaVMExt::DecodeWeakGlobalDuringShutdown(Thread* self, IndirectRef ref) { in DecodeWeakGlobalDuringShutdown() argument
842 DCHECK_EQ(IndirectReferenceTable::GetIndirectRefKind(ref), kWeakGlobal); in DecodeWeakGlobalDuringShutdown()
845 return DecodeWeakGlobal(self, ref); in DecodeWeakGlobalDuringShutdown()
851 return weak_globals_.SynchronizedGet(ref); in DecodeWeakGlobalDuringShutdown()
854 bool JavaVMExt::IsWeakGlobalCleared(Thread* self, IndirectRef ref) { in IsWeakGlobalCleared() argument
855 DCHECK_EQ(IndirectReferenceTable::GetIndirectRefKind(ref), kWeakGlobal); in IsWeakGlobalCleared()
867 return Runtime::Current()->IsClearedJniWeakGlobal(weak_globals_.Get<kWithoutReadBarrier>(ref)); in IsWeakGlobalCleared()
870 void JavaVMExt::UpdateWeakGlobal(Thread* self, IndirectRef ref, ObjPtr<mirror::Object> result) { in UpdateWeakGlobal() argument
872 weak_globals_.Update(ref, result); in UpdateWeakGlobal()