Searched refs:ref (Results 1 - 25 of 34) sorted by relevance

12

/art/runtime/arch/mips/
H A Dportable_entrypoints_mips.S25 # Fake callee save ref and args frame set up, note portable doesn't use callee save frames.
/art/runtime/gc/accounting/
H A Dmod_union_table-inl.h33 bool AddReference(const mirror::Object* /* obj */, const mirror::Object* ref) { argument
37 if ((*it)->Contains(ref)) {
52 bool AddReference(const mirror::Object* /* obj */, const mirror::Object* ref) { argument
57 if (space->Contains(ref)) {
H A Dmod_union_table.cc102 void operator()(const Object* obj, const Object* ref, const MemberOffset& /* offset */, argument
105 if (ref != NULL && mod_union_table_->AddReference(obj, ref)) {
106 references_->push_back(ref);
146 void operator()(const Object* obj, const Object* ref, const MemberOffset& /* offset */,
150 if (ref != NULL && mod_union_table_->AddReference(obj, ref) &&
151 references_.find(ref) == references_.end()) {
153 space::ContinuousSpace* to_space = heap->FindContinuousSpaceFromObject(ref, false);
155 << "References " << reinterpret_cast<const void*>(ref)
[all...]
H A Dmod_union_table.h111 virtual bool AddReference(const mirror::Object* obj, const mirror::Object* ref) = 0;
/art/test/036-finalizer/src/
H A DFinalizerTest.java17 import java.lang.ref.WeakReference;
H A DMain.java17 import java.lang.ref.WeakReference;
71 Object ref = wimp.get();
72 if (ref != null) {
73 s[0] = ref.toString();
/art/runtime/
H A Dreference_table.cc162 const mirror::Object* ref = entries[idx]; local
163 if (ref == NULL) {
166 if (ref == kClearedJniWeakGlobal) {
170 if (ref->GetClass() == NULL) {
172 size_t size = ref->SizeOf();
173 os << StringPrintf(" %5d: %p (raw) (%zd bytes)\n", idx, ref, size);
177 std::string className(PrettyTypeOf(ref));
180 size_t element_count = GetElementCount(ref);
183 } else if (ref->GetClass()->IsStringClass()) {
184 mirror::String* s = const_cast<mirror::Object*>(ref)
[all...]
H A Dscoped_thread_state_change.h175 IndirectRef ref = locals.Add(cookie, obj); local
194 return reinterpret_cast<T>(ref);
H A Djni_internal.h102 mirror::Object* DecodeWeakGlobal(Thread* self, IndirectRef ref);
H A Dthread.cc251 // Use global JNI ref to hold peer live while child thread starts.
1166 IndirectRef ref = reinterpret_cast<IndirectRef>(obj); local
1167 IndirectRefKind kind = GetIndirectRefKind(ref);
1172 result = const_cast<mirror::Object*>(locals.Get(ref));
1188 result = const_cast<mirror::Object*>(globals.Get(ref));
1191 result = Runtime::Current()->GetJavaVM()->DecodeWeakGlobal(const_cast<Thread*>(this), ref);
2026 mirror::Object* ref = shadow_frame->GetVRegReference(reg); local
2027 if (ref != NULL) {
2028 visitor_(ref, reg, this);
2047 mirror::Object* ref local
2080 mirror::Object* ref; local
[all...]
/art/test/079-phantom/src/
H A DBitmap.java17 import java.lang.ref.ReferenceQueue;
18 import java.lang.ref.PhantomReference;
137 PhantomWrapper ref = (PhantomWrapper) mQueue.remove();
138 //System.out.println("dequeued ref " + ref.mNativeData +
139 // " - " + ref);
140 Bitmap.freeNativeStorage(ref.mNativeData);
141 //ref.clear();
/art/test/003-omnibus-opcodes/src/
H A DInternedString.java17 import java.lang.ref.*;
/art/runtime/gc/
H A Dheap.cc601 SirtRef<mirror::Object> ref(self, obj);
1370 void operator()(const mirror::Object* obj, const mirror::Object* ref,
1374 if (UNLIKELY(ref != NULL && !IsLive(ref))) {
1386 LOG(ERROR) << "Object " << obj << " references dead object " << ref << " at offset "
1395 space::ContinuousSpace* ref_space = heap_->FindContinuousSpaceFromObject(ref, true);
1398 mirror::Class* ref_class = space->FindRecentFreedObject(ref);
1400 LOG(ERROR) << "Reference " << ref << " found as a recently freed object with class "
1403 LOG(ERROR) << "Reference " << ref << " not found as a recently freed object";
1407 if (ref
1409 LOG(ERROR) << "Ref type " << PrettyTypeOf(ref); variable
1891 IsEnqueuable(const mirror::Object* ref) argument
1900 EnqueueReference(mirror::Object* ref, mirror::Object** cleared_reference_list) argument
1907 IsEnqueued(mirror::Object* ref) argument
1913 EnqueuePendingReference(mirror::Object* ref, mirror::Object** list) argument
1933 mirror::Object* ref; local
[all...]
H A Dheap.h232 bool IsEnqueuable(const mirror::Object* ref);
233 void EnqueueReference(mirror::Object* ref, mirror::Object** list)
235 bool IsEnqueued(mirror::Object* ref) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
236 void EnqueuePendingReference(mirror::Object* ref, mirror::Object** list)
677 // offset of java.lang.ref.Reference.referent
680 // offset of java.lang.ref.Reference.queue
683 // offset of java.lang.ref.Reference.queueNext
686 // offset of java.lang.ref.Reference.pendingNext
689 // offset of java.lang.ref.FinalizerReference.zombie
/art/runtime/mirror/
H A Dobject.cc72 const Object* ref = copy->GetFieldObject<const Object*>(field_offset, false); local
73 heap->WriteBarrierField(copy.get(), field_offset, ref);
/art/runtime/verifier/
H A Dmethod_verifier.h190 static const std::vector<uint8_t>* GetDexGcMap(MethodReference ref)
193 static const MethodReference* GetDevirtMap(const MethodReference& ref, uint32_t dex_pc)
198 static bool IsSafeCast(MethodReference ref, uint32_t pc) LOCKS_EXCLUDED(safecast_map_lock_);
219 static bool IsClassRejected(ClassReference ref)
639 static void SetDexGcMap(MethodReference ref, const std::vector<uint8_t>& dex_gc_map)
649 static void SetSafeCastMap(MethodReference ref, const MethodSafeCastSet* mscs);
663 static void SetDevirtMap(MethodReference ref,
670 static void AddRejectedClass(ClassReference ref)
H A Dmethod_verifier.cc457 ClassReference ref(dex_file_, dex_file_->GetIndexForClassDef(*class_def_));
458 AddRejectedClass(ref);
1056 MethodReference ref(dex_file_, dex_method_idx_);
1057 bool compile = IsCandidateForCompilation(ref, method_access_flags_);
1069 verifier::MethodVerifier::SetDexGcMap(ref, *dex_gc_map);
1075 SetSafeCastMap(ref, method_to_safe_casts);
1082 SetDevirtMap(ref, pc_to_concrete_method);
2183 Fail(VERIFY_ERROR_BAD_CLASS_HARD) << "unable to initialize null ref";
4078 void MethodVerifier::SetDexGcMap(MethodReference ref, const std::vector<uint8_t>& gc_map) { argument
4082 DexGcMapTable::iterator it = dex_gc_maps_->find(ref);
4093 SetSafeCastMap(MethodReference ref, const MethodSafeCastSet* cast_set) argument
4105 IsSafeCast(MethodReference ref, uint32_t pc) argument
4118 GetDexGcMap(MethodReference ref) argument
4128 SetDevirtMap(MethodReference ref, const PcToConcreteMethodMap* devirt_map) argument
4142 GetDevirtMap(const MethodReference& ref, uint32_t dex_pc) argument
4304 AddRejectedClass(ClassReference ref) argument
4313 IsClassRejected(ClassReference ref) argument
[all...]
/art/runtime/gc/collector/
H A Dmark_sweep-inl.h127 const mirror::Object* ref = obj->GetFieldObject<const mirror::Object*>(field_offset, false); local
128 visitor(obj, ref, field_offset, is_static);
146 const mirror::Object* ref = obj->GetFieldObject<const mirror::Object*>(field_offset, false); local
147 visitor(obj, ref, field_offset, is_static);
H A Dmark_sweep.cc586 VisitObjectReferences(obj, [this](const Object* obj, const Object* ref, MemberOffset offset,
589 CheckReference(obj, ref, offset, is_static);
659 [mark_sweep, this](const Object* /* obj */, const Object* ref,
661 if (ref != nullptr && mark_sweep->MarkObjectParallel(ref)) {
664 if (reinterpret_cast<uintptr_t>(ref) >=
669 chunk_task_->MarkStackPush(ref);
1287 void MarkSweep::CheckReference(const Object* obj, const Object* ref, MemberOffset offset, bool is_static) { argument
1289 if (space->IsDlMallocSpace() && space->Contains(ref)) {
1292 bool is_marked = IsMarked(ref);
1474 Object* ref = heap_->DequeuePendingReference(list); local
1516 Object* ref = heap_->DequeuePendingReference(list); local
1538 Object* ref = heap_->DequeuePendingReference(list); local
[all...]
H A Dmark_sweep.h292 void CheckReference(const mirror::Object* obj, const mirror::Object* ref, MemberOffset offset,
375 void EnqueueFinalizerReferences(mirror::Object** ref)
379 void PreserveSomeSoftReferences(mirror::Object** ref)
/art/compiler/dex/
H A Dvreg_analysis.cc45 reg_location_[index].ref = true;
221 reg_location_[ssa_rep->uses[next]].ref = true;
282 bool defined_ref = rl_temp.defined && rl_temp.ref;
289 defined_ref |= rl_temp.defined && rl_temp.ref;
303 << " has both fp and core/ref uses for same def.";
343 table[i].fp ? 'F' : table[i].ref ? 'R' :'C',
357 table[i].fp ? 'F' : table[i].ref ? 'R' :'C',
405 reg_location_[s_reg].ref = true;
434 reg_location_[s_reg].ref = true;
/art/test/072-precise-gc/src/
H A DMain.java17 import java.lang.ref.WeakReference;
/art/runtime/arch/arm/
H A Dportable_entrypoints_arm.S68 @ Fake callee save ref and args frame set up, note portable doesn't use callee save frames.
100 @ Fake callee save ref and args frame set up, note portable doesn't use callee save frames.
142 @ Fake callee save ref and args frame set up, note portable doesn't use callee save frames.
/art/compiler/driver/
H A Dcompiler_driver.cc2179 ClassReference ref(manager->GetDexFile(), class_def_index);
2180 manager->GetCompiler()->RecordClassStatus(ref, klass->GetStatus());
2232 ClassReference ref(&dex_file, class_def_index);
2234 if (verifier::MethodVerifier::IsClassRejected(ref)) {
2354 MethodReference ref(&dex_file, method_idx);
2355 DCHECK(GetCompiledMethod(ref) == NULL) << PrettyMethod(method_idx, dex_file);
2358 compiled_methods_.Put(ref, compiled_method);
2360 DCHECK(GetCompiledMethod(ref) != NULL) << PrettyMethod(method_idx, dex_file);
2370 CompiledClass* CompilerDriver::GetCompiledClass(ClassReference ref) const {
2372 ClassTable::const_iterator it = compiled_classes_.find(ref);
2380 RecordClassStatus(ClassReference ref, mirror::Class::Status status) argument
[all...]
H A Dcompiler_driver.h142 CompiledClass* GetCompiledClass(ClassReference ref) const
145 CompiledMethod* GetCompiledMethod(MethodReference ref) const
313 void RecordClassStatus(ClassReference ref, mirror::Class::Status status)

Completed in 505 milliseconds

12