Searched defs:ref (Results 1 - 15 of 15) sorted by relevance

/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...]
/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/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...]
/art/runtime/
H A Dscoped_thread_state_change.h175 IndirectRef ref = locals.Add(cookie, obj); local
194 return reinterpret_cast<T>(ref);
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 Dcheck_jni.cc211 // If java_object is a weak global ref whose referent has been cleared,
1228 static jobject NewLocalRef(JNIEnv* env, jobject ref) { argument
1229 CHECK_JNI_ENTRY(kFlag_Default, "EL", env, ref);
1230 return CHECK_JNI_EXIT("L", baseEnv(env)->NewLocalRef(env, ref));
1344 /* "value" arg only used when type == ref */ \
1352 /* "value" arg only used when type == 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);
2018 mirror::Object* ref = shadow_frame->GetVRegReference(reg); local
2019 if (ref != NULL) {
2020 visitor_(ref, reg, this);
2039 mirror::Object* ref local
2072 mirror::Object* ref; local
[all...]
H A Djni_internal.cc842 IndirectRef ref = globals.Add(IRT_FIRST_SEGMENT, decoded_obj); local
843 return reinterpret_cast<jobject>(ref);
2481 IndirectRef ref = reinterpret_cast<IndirectRef>(java_object); local
2482 IndirectRefKind kind = GetIndirectRefKind(ref);
2485 if (static_cast<JNIEnvExt*>(env)->locals.Get(ref) != kInvalidIndirectRefObject) {
3026 IndirectRef ref = weak_globals_.Add(IRT_FIRST_SEGMENT, obj); local
3027 return reinterpret_cast<jweak>(ref);
3093 mirror::Object* JavaVMExt::DecodeWeakGlobal(Thread* self, IndirectRef ref) { argument
3098 return const_cast<mirror::Object*>(weak_globals_.Get(ref));
/art/compiler/
H A Dimage_writer.cc612 const Object* ref = orig->GetFieldObject<const Object*>(byte_offset, false); local
614 copy->SetFieldPtr(byte_offset, GetImageAddress(ref), false);
633 const Object* ref = orig->GetFieldObject<const Object*>(field_offset, false); local
635 copy->SetFieldPtr(field_offset, GetImageAddress(ref), false);
643 const Object* ref = orig->GetFieldObject<const Object*>(field_offset, false); local
645 copy->SetFieldPtr(field_offset, GetImageAddress(ref), false);
/art/compiler/dex/
H A Dmir_graph.h309 unsigned ref:1; // Something GC cares about. member in struct:art::RegLocation
472 return loc.ref && loc.is_const && (ConstantValue(loc) == 0);
/art/compiler/driver/
H A Dcompiler_driver.cc2151 ClassReference ref(manager->GetDexFile(), class_def_index);
2152 manager->GetCompiler()->RecordClassStatus(ref, klass->GetStatus());
2204 ClassReference ref(&dex_file, class_def_index);
2206 if (verifier::MethodVerifier::IsClassRejected(ref)) {
2326 MethodReference ref(&dex_file, method_idx);
2327 DCHECK(GetCompiledMethod(ref) == NULL) << PrettyMethod(method_idx, dex_file);
2330 compiled_methods_.Put(ref, compiled_method);
2332 DCHECK(GetCompiledMethod(ref) != NULL) << PrettyMethod(method_idx, dex_file);
2342 CompiledClass* CompilerDriver::GetCompiledClass(ClassReference ref) const {
2344 ClassTable::const_iterator it = compiled_classes_.find(ref);
2352 RecordClassStatus(ClassReference ref, mirror::Class::Status status) argument
[all...]
/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...]
/art/runtime/verifier/
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";
4075 void MethodVerifier::SetDexGcMap(MethodReference ref, const std::vector<uint8_t>& gc_map) { argument
4079 DexGcMapTable::iterator it = dex_gc_maps_->find(ref);
4090 SetSafeCastMap(MethodReference ref, const MethodSafeCastSet* cast_set) argument
4102 IsSafeCast(MethodReference ref, uint32_t pc) argument
4115 GetDexGcMap(MethodReference ref) argument
4125 SetDevirtMap(MethodReference ref, const PcToConcreteMethodMap* devirt_map) argument
4139 GetDevirtMap(const MethodReference& ref, uint32_t dex_pc) argument
4301 AddRejectedClass(ClassReference ref) argument
4310 IsClassRejected(ClassReference ref) argument
[all...]

Completed in 4000 milliseconds