Lines Matching refs:gRegistry
184 static ObjectRegistry* gRegistry = NULL; variable
219 mirror::Object* o = gRegistry->Get<mirror::Object*>(id); in DecodeArray()
234 mirror::Object* o = gRegistry->Get<mirror::Object*>(id); in DecodeClass()
251 mirror::Object* thread_peer = gRegistry->Get<mirror::Object*>(thread_id); in DecodeThread()
444 CHECK(gRegistry == NULL); in StartJdwp()
445 gRegistry = new ObjectRegistry; in StartJdwp()
470 delete gRegistry; in StopJdwp()
471 gRegistry = NULL; in StopJdwp()
572 gRegistry->Clear(); in Disconnected()
595 mirror::Object* o = gRegistry->Get<mirror::Object*>(class_id); in GetClassName()
614 class_object_id = gRegistry->Add(c); in GetClassObject()
628 superclass_id = gRegistry->Add(c->GetSuperClass()); in GetSuperclass()
634 mirror::Object* o = gRegistry->Get<mirror::Object*>(id); in GetClassLoader()
638 expandBufAddObjectId(pReply, gRegistry->Add(o->GetClass()->GetClassLoader())); in GetClassLoader()
662 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id); in GetMonitorInfo()
678 expandBufAddObjectId(reply, gRegistry->Add(monitor_info.owner->GetPeer())); in GetMonitorInfo()
680 expandBufAddObjectId(reply, gRegistry->Add(NULL)); in GetMonitorInfo()
685 expandBufAddObjectId(reply, gRegistry->Add(monitor_info.waiters[i]->GetPeer())); in GetMonitorInfo()
735 monitors.push_back(gRegistry->Add(visitor.monitors[i])); in GetOwnedMonitors()
755 contended_monitor = gRegistry->Add(Monitor::GetContendedMonitor(thread)); in GetContendedMonitor()
790 instances.push_back(gRegistry->Add(raw_instances[i])); in GetInstances()
798 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id); in GetReferringObjects()
806 referring_objects.push_back(gRegistry->Add(raw_instances[i])); in GetReferringObjects()
813 gRegistry->DisableCollection(object_id); in DisableCollection()
819 gRegistry->EnableCollection(object_id); in EnableCollection()
825 is_collected = gRegistry->IsCollected(object_id); in IsCollected()
831 gRegistry->DisposeObject(object_id, reference_count); in DisposeObject()
862 classes.push_back(gRegistry->AddRefType(c)); in GetClassList()
904 ids.push_back(gRegistry->Add(classes[i])); in FindLoadedClassBySignature()
910 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id); in GetReferenceType()
923 JDWP::RefTypeId type_id = gRegistry->AddRefType(o->GetClass()); in GetReferenceType()
952 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id); in GetObjectTag()
1039 expandBufAddObjectId(pReply, gRegistry->Add(element)); in OutputArray()
1086 mirror::Object* o = gRegistry->Get<mirror::Object*>(id); in SetArrayElements()
1098 return gRegistry->Add(mirror::String::AllocFromModifiedUtf8(Thread::Current(), str.c_str())); in CreateString()
1107 new_object = gRegistry->Add(c->AllocObject(Thread::Current())); in CreateObject()
1121 new_array = gRegistry->Add(mirror::Array::Alloc(Thread::Current(), c, length)); in CreateArrayObject()
1177 location.class_id = gRegistry->Add(c); in SetLocation()
1311 expandBufAddRefTypeId(pReply, gRegistry->AddRefType(kh.GetDirectInterface(i))); in OutputDeclaredInterfaces()
1444 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id); in GetFieldValueImpl()
1493 expandBufAddObjectId(pReply, gRegistry->Add(value)); in GetFieldValueImpl()
1510 mirror::Object* o = gRegistry->Get<mirror::Object*>(object_id); in SetFieldValueImpl()
1542 mirror::Object* v = gRegistry->Get<mirror::Object*>(value); in SetFieldValueImpl()
1568 mirror::String* s = gRegistry->Get<mirror::String*>(string_id); in StringToUtf8()
1582 mirror::Object* thread_object = gRegistry->Get<mirror::Object*>(thread_id); in GetThreadName()
1595 mirror::Object* thread_object = gRegistry->Get<mirror::Object*>(thread_id); in GetThreadGroup()
1619 JDWP::ObjectId thread_group_id = gRegistry->Add(group); in GetThreadGroup()
1627 mirror::Object* thread_group = gRegistry->Get<mirror::Object*>(thread_group_id); in GetThreadGroupName()
1639 mirror::Object* thread_group = gRegistry->Get<mirror::Object*>(thread_group_id); in GetThreadGroupParent()
1647 return gRegistry->Add(parent); in GetThreadGroupParent()
1654 return gRegistry->Add(group); in GetSystemThreadGroupId()
1661 return gRegistry->Add(group); in GetMainThreadGroupId()
1767 thread_ids_.push_back(gRegistry->Add(peer)); in GetThreads()
1796 mirror::Object* thread_group = gRegistry->Get<mirror::Object*>(thread_group_id); in GetThreads()
1804 mirror::Object* thread_group = gRegistry->Get<mirror::Object*>(thread_group_id); in GetChildThreadGroups()
1819 child_thread_group_ids.push_back(gRegistry->Add(groups_array->Get(i))); in GetChildThreadGroups()
1916 return gRegistry->Add(soa.Self()->GetPeer()); in GetThreadSelfId()
1931 peer.reset(soa.AddLocalReference<jobject>(gRegistry->Get<mirror::Object*>(thread_id))); in SuspendThread()
1950 mirror::Object* peer = gRegistry->Get<mirror::Object*>(thread_id); in ResumeThread()
2011 *result = gRegistry->Add(visitor.this_object); in GetThisObject()
2084 JDWP::SetObjectId(buf_+1, gRegistry->Add(o)); in GetLocalValue()
2101 JDWP::SetObjectId(buf_+1, gRegistry->Add(o)); in GetLocalValue()
2197 mirror::Object* o = gRegistry->Get<mirror::Object*>(static_cast<JDWP::ObjectId>(value_)); in SetLocalValue()
2246 location.class_id = gRegistry->AddRefType(c); in PostLocationEvent()
2253 if (gRegistry->Contains(this_object)) { in PostLocationEvent()
2254 this_id = gRegistry->Add(this_object); in PostLocationEvent()
2272 JDWP::ObjectId this_id = gRegistry->Add(throw_location.GetThis()); in PostException()
2273 JDWP::ObjectId exception_id = gRegistry->Add(exception_object); in PostException()
2274 JDWP::RefTypeId exception_class_id = gRegistry->AddRefType(exception_object->GetClass()); in PostException()
2290 gJdwpState->PostClassPrepare(tag, gRegistry->Add(c), ClassHelper(c).GetDescriptor(), state); in PostClassPrepare()
2412 jobject thread_peer = gRegistry->GetJObject(thread_id); in ScopedThreadSuspension()
2673 mirror::Object* receiver = gRegistry->Get<mirror::Object*>(object_id); in InvokeMethod()
2678 mirror::Object* thread = gRegistry->Get<mirror::Object*>(thread_id); in InvokeMethod()
2718 mirror::Object* argument = gRegistry->Get<mirror::Object*>(arg_values[i]); in InvokeMethod()
2728 v.l = gRegistry->GetJObject(arg_values[i]); in InvokeMethod()
2800 *pResultValue = gRegistry->Add(req->result_value.GetL()); in InvokeMethod()
2848 pReq->exception = gRegistry->Add(exception); in ExecuteMethod()
2871 gRegistry->Add(pReq->result_value.GetL()); in ExecuteMethod()
3058 JDWP::ObjectId id = gRegistry->Add(t->GetPeer()); in PostThreadStartOrStop()