Lines Matching refs:JDWP
301 static JDWP::JdwpOptions gJdwpOptions;
304 static JDWP::JdwpState* gJdwpState = NULL;
404 static mirror::Array* DecodeArray(JDWP::RefTypeId id, JDWP::JdwpError& status) in DecodeArray()
408 status = JDWP::ERR_INVALID_OBJECT; in DecodeArray()
412 status = JDWP::ERR_INVALID_ARRAY; in DecodeArray()
415 status = JDWP::ERR_NONE; in DecodeArray()
419 static mirror::Class* DecodeClass(JDWP::RefTypeId id, JDWP::JdwpError& status) in DecodeClass()
423 status = JDWP::ERR_INVALID_OBJECT; in DecodeClass()
427 status = JDWP::ERR_INVALID_CLASS; in DecodeClass()
430 status = JDWP::ERR_NONE; in DecodeClass()
434 static JDWP::JdwpError DecodeThread(ScopedObjectAccessUnchecked& soa, JDWP::ObjectId thread_id, Thr… in DecodeThread()
441 return JDWP::ERR_INVALID_OBJECT; in DecodeThread()
447 return JDWP::ERR_INVALID_THREAD; in DecodeThread()
453 return JDWP::ERR_THREAD_NOT_ALIVE; in DecodeThread()
455 return JDWP::ERR_NONE; in DecodeThread()
458 static JDWP::JdwpTag BasicTagFromDescriptor(const char* descriptor) { in BasicTagFromDescriptor()
461 return static_cast<JDWP::JdwpTag>(descriptor[0]); in BasicTagFromDescriptor()
464 static JDWP::JdwpTag BasicTagFromClass(mirror::Class* klass) in BasicTagFromClass()
471 static JDWP::JdwpTag TagFromClass(const ScopedObjectAccessUnchecked& soa, mirror::Class* c) in TagFromClass()
475 return JDWP::JT_ARRAY; in TagFromClass()
478 return JDWP::JT_STRING; in TagFromClass()
481 return JDWP::JT_CLASS_OBJECT; in TagFromClass()
486 return JDWP::JT_THREAD; in TagFromClass()
493 return JDWP::JT_THREAD_GROUP; in TagFromClass()
500 return JDWP::JT_CLASS_LOADER; in TagFromClass()
503 return JDWP::JT_OBJECT; in TagFromClass()
514 JDWP::JdwpTag Dbg::TagFromObject(const ScopedObjectAccessUnchecked& soa, mirror::Object* o) { in TagFromObject()
515 return (o == NULL) ? JDWP::JT_OBJECT : TagFromClass(soa, o->GetClass()); in TagFromObject()
518 static bool IsPrimitiveTag(JDWP::JdwpTag tag) { in IsPrimitiveTag()
520 case JDWP::JT_BOOLEAN: in IsPrimitiveTag()
521 case JDWP::JT_BYTE: in IsPrimitiveTag()
522 case JDWP::JT_CHAR: in IsPrimitiveTag()
523 case JDWP::JT_FLOAT: in IsPrimitiveTag()
524 case JDWP::JT_DOUBLE: in IsPrimitiveTag()
525 case JDWP::JT_INT: in IsPrimitiveTag()
526 case JDWP::JT_LONG: in IsPrimitiveTag()
527 case JDWP::JT_SHORT: in IsPrimitiveTag()
528 case JDWP::JT_VOID: in IsPrimitiveTag()
555 gJdwpOptions.transport = JDWP::kJdwpTransportSocket; in ParseJdwpOption()
557 gJdwpOptions.transport = JDWP::kJdwpTransportAndroidAdb; in ParseJdwpOption()
631 if (gJdwpOptions.transport == JDWP::kJdwpTransportUnknown) { in ParseJdwpOptions()
655 gJdwpState = JDWP::JdwpState::Create(&gJdwpOptions); in StartJdwp()
841 std::string Dbg::GetClassName(JDWP::RefTypeId class_id) { in GetClassName()
863 JDWP::JdwpError Dbg::GetClassObject(JDWP::RefTypeId id, JDWP::ObjectId& class_object_id) { in GetClassObject()
864 JDWP::JdwpError status; in GetClassObject()
870 return JDWP::ERR_NONE; in GetClassObject()
873 JDWP::JdwpError Dbg::GetSuperclass(JDWP::RefTypeId id, JDWP::RefTypeId& superclass_id) { in GetSuperclass()
874 JDWP::JdwpError status; in GetSuperclass()
885 return JDWP::ERR_NONE; in GetSuperclass()
888 JDWP::JdwpError Dbg::GetClassLoader(JDWP::RefTypeId id, JDWP::ExpandBuf* pReply) { in GetClassLoader()
891 return JDWP::ERR_INVALID_OBJECT; in GetClassLoader()
894 return JDWP::ERR_NONE; in GetClassLoader()
897 JDWP::JdwpError Dbg::GetModifiers(JDWP::RefTypeId id, JDWP::ExpandBuf* pReply) { in GetModifiers()
898 JDWP::JdwpError status; in GetModifiers()
915 return JDWP::ERR_NONE; in GetModifiers()
918 JDWP::JdwpError Dbg::GetMonitorInfo(JDWP::ObjectId object_id, JDWP::ExpandBuf* reply) in GetMonitorInfo()
922 return JDWP::ERR_INVALID_OBJECT; in GetMonitorInfo()
946 return JDWP::ERR_NONE; in GetMonitorInfo()
949 JDWP::JdwpError Dbg::GetOwnedMonitors(JDWP::ObjectId thread_id, in GetOwnedMonitors()
950 std::vector<JDWP::ObjectId>& monitors, in GetOwnedMonitors()
954 std::vector<JDWP::ObjectId>* monitor_vector, in GetOwnedMonitors()
978 std::vector<JDWP::ObjectId>* monitors; in GetOwnedMonitors()
986 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread); in GetOwnedMonitors()
987 if (error != JDWP::ERR_NONE) { in GetOwnedMonitors()
991 return JDWP::ERR_THREAD_NOT_SUSPENDED; in GetOwnedMonitors()
997 return JDWP::ERR_NONE; in GetOwnedMonitors()
1000 JDWP::JdwpError Dbg::GetContendedMonitor(JDWP::ObjectId thread_id, in GetContendedMonitor()
1001 JDWP::ObjectId& contended_monitor) { in GetContendedMonitor()
1007 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread); in GetContendedMonitor()
1008 if (error != JDWP::ERR_NONE) { in GetContendedMonitor()
1012 return JDWP::ERR_THREAD_NOT_SUSPENDED; in GetContendedMonitor()
1019 return JDWP::ERR_NONE; in GetContendedMonitor()
1022 JDWP::JdwpError Dbg::GetInstanceCounts(const std::vector<JDWP::RefTypeId>& class_ids, in GetInstanceCounts()
1030 JDWP::JdwpError status; in GetInstanceCounts()
1039 return JDWP::ERR_NONE; in GetInstanceCounts()
1042 JDWP::JdwpError Dbg::GetInstances(JDWP::RefTypeId class_id, int32_t max_count, std::vector<JDWP::Ob… in GetInstances()
1047 JDWP::JdwpError status; in GetInstances()
1057 return JDWP::ERR_NONE; in GetInstances()
1060 JDWP::JdwpError Dbg::GetReferringObjects(JDWP::ObjectId object_id, int32_t max_count, in GetReferringObjects()
1061 std::vector<JDWP::ObjectId>& referring_objects) in GetReferringObjects()
1067 return JDWP::ERR_INVALID_OBJECT; in GetReferringObjects()
1074 return JDWP::ERR_NONE; in GetReferringObjects()
1077 JDWP::JdwpError Dbg::DisableCollection(JDWP::ObjectId object_id) in DisableCollection()
1081 return JDWP::ERR_INVALID_OBJECT; in DisableCollection()
1084 return JDWP::ERR_NONE; in DisableCollection()
1087 JDWP::JdwpError Dbg::EnableCollection(JDWP::ObjectId object_id) in EnableCollection()
1095 return JDWP::ERR_INVALID_OBJECT; in EnableCollection()
1098 return JDWP::ERR_NONE; in EnableCollection()
1101 JDWP::JdwpError Dbg::IsCollected(JDWP::ObjectId object_id, bool& is_collected) in IsCollected()
1105 return JDWP::ERR_INVALID_OBJECT; in IsCollected()
1115 return JDWP::ERR_NONE; in IsCollected()
1118 void Dbg::DisposeObject(JDWP::ObjectId object_id, uint32_t reference_count) in DisposeObject()
1123 JDWP::JdwpTypeTag Dbg::GetTypeTag(mirror::Class* klass) { in GetTypeTag()
1126 return JDWP::TT_ARRAY; in GetTypeTag()
1128 return JDWP::TT_INTERFACE; in GetTypeTag()
1130 return JDWP::TT_CLASS; in GetTypeTag()
1134 JDWP::JdwpError Dbg::GetReflectedType(JDWP::RefTypeId class_id, JDWP::ExpandBuf* pReply) { in GetReflectedType()
1135 JDWP::JdwpError status; in GetReflectedType()
1141 JDWP::JdwpTypeTag type_tag = GetTypeTag(c); in GetReflectedType()
1144 return JDWP::ERR_NONE; in GetReflectedType()
1147 void Dbg::GetClassList(std::vector<JDWP::RefTypeId>& classes) { in GetClassList()
1152 explicit ClassListCreator(std::vector<JDWP::RefTypeId>& classes) : classes(classes) { in GetClassList()
1168 std::vector<JDWP::RefTypeId>& classes; in GetClassList()
1176 JDWP::JdwpError Dbg::GetClassInfo(JDWP::RefTypeId class_id, JDWP::JdwpTypeTag* pTypeTag, in GetClassInfo()
1178 JDWP::JdwpError status; in GetClassInfo()
1185 *pStatus = JDWP::CS_VERIFIED | JDWP::CS_PREPARED; in GetClassInfo()
1186 *pTypeTag = JDWP::TT_ARRAY; in GetClassInfo()
1189 *pStatus = JDWP::CS_ERROR; in GetClassInfo()
1191 *pStatus = JDWP::CS_VERIFIED | JDWP::CS_PREPARED | JDWP::CS_INITIALIZED; in GetClassInfo()
1193 *pTypeTag = c->IsInterface() ? JDWP::TT_INTERFACE : JDWP::TT_CLASS; in GetClassInfo()
1200 return JDWP::ERR_NONE; in GetClassInfo()
1203 void Dbg::FindLoadedClassBySignature(const char* descriptor, std::vector<JDWP::RefTypeId>& ids) { in FindLoadedClassBySignature()
1212 JDWP::JdwpError Dbg::GetReferenceType(JDWP::ObjectId object_id, JDWP::ExpandBuf* pReply) in GetReferenceType()
1216 return JDWP::ERR_INVALID_OBJECT; in GetReferenceType()
1219 JDWP::JdwpTypeTag type_tag = GetTypeTag(o->GetClass()); in GetReferenceType()
1220 JDWP::RefTypeId type_id = gRegistry->AddRefType(o->GetClass()); in GetReferenceType()
1225 return JDWP::ERR_NONE; in GetReferenceType()
1228 JDWP::JdwpError Dbg::GetSignature(JDWP::RefTypeId class_id, std::string* signature) { in GetSignature()
1229 JDWP::JdwpError status; in GetSignature()
1236 return JDWP::ERR_NONE; in GetSignature()
1239 JDWP::JdwpError Dbg::GetSourceFile(JDWP::RefTypeId class_id, std::string& result) { in GetSourceFile()
1240 JDWP::JdwpError status; in GetSourceFile()
1247 return JDWP::ERR_ABSENT_INFORMATION; in GetSourceFile()
1250 return JDWP::ERR_NONE; in GetSourceFile()
1253 JDWP::JdwpError Dbg::GetObjectTag(JDWP::ObjectId object_id, uint8_t& tag) { in GetObjectTag()
1257 return JDWP::ERR_INVALID_OBJECT; in GetObjectTag()
1260 return JDWP::ERR_NONE; in GetObjectTag()
1263 size_t Dbg::GetTagWidth(JDWP::JdwpTag tag) { in GetTagWidth()
1265 case JDWP::JT_VOID: in GetTagWidth()
1267 case JDWP::JT_BYTE: in GetTagWidth()
1268 case JDWP::JT_BOOLEAN: in GetTagWidth()
1270 case JDWP::JT_CHAR: in GetTagWidth()
1271 case JDWP::JT_SHORT: in GetTagWidth()
1273 case JDWP::JT_FLOAT: in GetTagWidth()
1274 case JDWP::JT_INT: in GetTagWidth()
1276 case JDWP::JT_ARRAY: in GetTagWidth()
1277 case JDWP::JT_OBJECT: in GetTagWidth()
1278 case JDWP::JT_STRING: in GetTagWidth()
1279 case JDWP::JT_THREAD: in GetTagWidth()
1280 case JDWP::JT_THREAD_GROUP: in GetTagWidth()
1281 case JDWP::JT_CLASS_LOADER: in GetTagWidth()
1282 case JDWP::JT_CLASS_OBJECT: in GetTagWidth()
1283 return sizeof(JDWP::ObjectId); in GetTagWidth()
1284 case JDWP::JT_DOUBLE: in GetTagWidth()
1285 case JDWP::JT_LONG: in GetTagWidth()
1293 JDWP::JdwpError Dbg::GetArrayLength(JDWP::ObjectId array_id, int& length) { in GetArrayLength()
1294 JDWP::JdwpError status; in GetArrayLength()
1300 return JDWP::ERR_NONE; in GetArrayLength()
1303 JDWP::JdwpError Dbg::OutputArray(JDWP::ObjectId array_id, int offset, int count, JDWP::ExpandBuf* p… in OutputArray()
1304 JDWP::JdwpError status; in OutputArray()
1312 return JDWP::ERR_INVALID_LENGTH; in OutputArray()
1314 JDWP::JdwpTag element_tag = BasicTagFromClass(a->GetClass()->GetComponentType()); in OutputArray()
1323 for (int i = 0; i < count; ++i) JDWP::Write8BE(&dst, src8[offset + i]); in OutputArray()
1326 for (int i = 0; i < count; ++i) JDWP::Write4BE(&dst, src4[offset + i]); in OutputArray()
1329 for (int i = 0; i < count; ++i) JDWP::Write2BE(&dst, src2[offset + i]); in OutputArray()
1339 JDWP::JdwpTag specific_tag = (element != nullptr) ? TagFromObject(soa, element) in OutputArray()
1346 return JDWP::ERR_NONE; in OutputArray()
1350 static void CopyArrayData(mirror::Array* a, JDWP::Request& src, int offset, int count) in CopyArrayData()
1361 JDWP::JdwpError Dbg::SetArrayElements(JDWP::ObjectId array_id, int offset, int count, in SetArrayElements()
1362 JDWP::Request& request) in SetArrayElements()
1364 JDWP::JdwpError status; in SetArrayElements()
1372 return JDWP::ERR_INVALID_LENGTH; in SetArrayElements()
1374 JDWP::JdwpTag element_tag = BasicTagFromClass(dst->GetClass()->GetComponentType()); in SetArrayElements()
1390 JDWP::ObjectId id = request.ReadObjectId(); in SetArrayElements()
1393 return JDWP::ERR_INVALID_OBJECT; in SetArrayElements()
1399 return JDWP::ERR_NONE; in SetArrayElements()
1402 JDWP::ObjectId Dbg::CreateString(const std::string& str) { in CreateString()
1406 JDWP::JdwpError Dbg::CreateObject(JDWP::RefTypeId class_id, JDWP::ObjectId& new_object) { in CreateObject()
1407 JDWP::JdwpError status; in CreateObject()
1413 return JDWP::ERR_NONE; in CreateObject()
1419 JDWP::JdwpError Dbg::CreateArrayObject(JDWP::RefTypeId array_class_id, uint32_t length, in CreateArrayObject()
1420 JDWP::ObjectId& new_array) { in CreateArrayObject()
1421 JDWP::JdwpError status; in CreateArrayObject()
1429 return JDWP::ERR_NONE; in CreateArrayObject()
1432 JDWP::FieldId Dbg::ToFieldId(const mirror::ArtField* f) { in ToFieldId()
1434 return static_cast<JDWP::FieldId>(reinterpret_cast<uintptr_t>(f)); in ToFieldId()
1437 static JDWP::MethodId ToMethodId(const mirror::ArtMethod* m) in ToMethodId()
1440 return static_cast<JDWP::MethodId>(reinterpret_cast<uintptr_t>(m)); in ToMethodId()
1443 static mirror::ArtField* FromFieldId(JDWP::FieldId fid) in FromFieldId()
1449 static mirror::ArtMethod* FromMethodId(JDWP::MethodId mid) in FromMethodId()
1455 bool Dbg::MatchThread(JDWP::ObjectId expected_thread_id, Thread* event_thread) { in MatchThread()
1461 bool Dbg::MatchLocation(const JDWP::JdwpLocation& expected_location, in MatchLocation()
1462 const JDWP::EventLocation& event_location) { in MatchLocation()
1470 bool Dbg::MatchType(mirror::Class* event_class, JDWP::RefTypeId class_id) { in MatchType()
1474 JDWP::JdwpError status; in MatchType()
1480 bool Dbg::MatchField(JDWP::RefTypeId expected_type_id, JDWP::FieldId expected_field_id, in MatchField()
1489 bool Dbg::MatchInstance(JDWP::ObjectId expected_instance_id, mirror::Object* event_instance) { in MatchInstance()
1494 void Dbg::SetJdwpLocation(JDWP::JdwpLocation* location, mirror::ArtMethod* m, uint32_t dex_pc) in SetJdwpLocation()
1507 std::string Dbg::GetMethodName(JDWP::MethodId method_id) in GetMethodName()
1516 std::string Dbg::GetFieldName(JDWP::FieldId field_id) in GetFieldName()
1583 JDWP::JdwpError Dbg::OutputDeclaredFields(JDWP::RefTypeId class_id, bool with_generic, JDWP::Expand… in OutputDeclaredFields()
1584 JDWP::JdwpError status; in OutputDeclaredFields()
1606 return JDWP::ERR_NONE; in OutputDeclaredFields()
1609 JDWP::JdwpError Dbg::OutputDeclaredMethods(JDWP::RefTypeId class_id, bool with_generic, in OutputDeclaredMethods()
1610 JDWP::ExpandBuf* pReply) { in OutputDeclaredMethods()
1611 JDWP::JdwpError status; in OutputDeclaredMethods()
1633 return JDWP::ERR_NONE; in OutputDeclaredMethods()
1636 JDWP::JdwpError Dbg::OutputDeclaredInterfaces(JDWP::RefTypeId class_id, JDWP::ExpandBuf* pReply) { in OutputDeclaredInterfaces()
1637 JDWP::JdwpError status; in OutputDeclaredInterfaces()
1650 return JDWP::ERR_NONE; in OutputDeclaredInterfaces()
1653 void Dbg::OutputLineTable(JDWP::RefTypeId, JDWP::MethodId method_id, JDWP::ExpandBuf* pReply) in OutputLineTable()
1657 JDWP::ExpandBuf* pReply; in OutputLineTable()
1696 JDWP::Set4BE(expandBufGetBuffer(pReply) + numLinesOffset, context.numItems); in OutputLineTable()
1699 void Dbg::OutputVariableTable(JDWP::RefTypeId, JDWP::MethodId method_id, bool with_generic, in OutputVariableTable()
1700 JDWP::ExpandBuf* pReply) { in OutputVariableTable()
1703 JDWP::ExpandBuf* pReply; in OutputVariableTable()
1755 JDWP::Set4BE(expandBufGetBuffer(pReply) + variable_count_offset, context.variable_count); in OutputVariableTable()
1758 void Dbg::OutputMethodReturnValue(JDWP::MethodId method_id, const JValue* return_value, in OutputMethodReturnValue()
1759 JDWP::ExpandBuf* pReply) { in OutputMethodReturnValue()
1761 JDWP::JdwpTag tag = BasicTagFromDescriptor(m->GetShorty()); in OutputMethodReturnValue()
1765 void Dbg::OutputFieldValue(JDWP::FieldId field_id, const JValue* field_value, in OutputFieldValue()
1766 JDWP::ExpandBuf* pReply) { in OutputFieldValue()
1768 JDWP::JdwpTag tag = BasicTagFromDescriptor(f->GetTypeDescriptor()); in OutputFieldValue()
1772 JDWP::JdwpError Dbg::GetBytecodes(JDWP::RefTypeId, JDWP::MethodId method_id, in GetBytecodes()
1777 return JDWP::ERR_INVALID_METHODID; in GetBytecodes()
1786 return JDWP::ERR_NONE; in GetBytecodes()
1789 JDWP::JdwpTag Dbg::GetFieldBasicTag(JDWP::FieldId field_id) { in GetFieldBasicTag()
1793 JDWP::JdwpTag Dbg::GetStaticFieldBasicTag(JDWP::FieldId field_id) { in GetStaticFieldBasicTag()
1797 static JDWP::JdwpError GetFieldValueImpl(JDWP::RefTypeId ref_type_id, JDWP::ObjectId object_id, in GetFieldValueImpl()
1798 JDWP::FieldId field_id, JDWP::ExpandBuf* pReply, in GetFieldValueImpl()
1801 JDWP::JdwpError status; in GetFieldValueImpl()
1809 return JDWP::ERR_INVALID_OBJECT; in GetFieldValueImpl()
1820 return JDWP::ERR_INVALID_FIELDID; in GetFieldValueImpl()
1827 return JDWP::ERR_INVALID_FIELDID; in GetFieldValueImpl()
1838 JDWP::JdwpTag tag = BasicTagFromDescriptor(f->GetTypeDescriptor()); in GetFieldValueImpl()
1840 if (tag == JDWP::JT_VOID) { in GetFieldValueImpl()
1844 } else if (tag == JDWP::JT_DOUBLE || tag == JDWP::JT_LONG) { in GetFieldValueImpl()
1851 return JDWP::ERR_NONE; in GetFieldValueImpl()
1854 JDWP::JdwpError Dbg::GetFieldValue(JDWP::ObjectId object_id, JDWP::FieldId field_id, in GetFieldValue()
1855 JDWP::ExpandBuf* pReply) { in GetFieldValue()
1859 JDWP::JdwpError Dbg::GetStaticFieldValue(JDWP::RefTypeId ref_type_id, JDWP::FieldId field_id, JDWP:… in GetStaticFieldValue()
1863 static JDWP::JdwpError SetFieldValueImpl(JDWP::ObjectId object_id, JDWP::FieldId field_id, in SetFieldValueImpl()
1868 return JDWP::ERR_INVALID_OBJECT; in SetFieldValueImpl()
1876 return JDWP::ERR_INVALID_FIELDID; in SetFieldValueImpl()
1887 JDWP::JdwpTag tag = BasicTagFromDescriptor(f->GetTypeDescriptor()); in SetFieldValueImpl()
1890 if (tag == JDWP::JT_DOUBLE || tag == JDWP::JT_LONG) { in SetFieldValueImpl()
1902 return JDWP::ERR_INVALID_OBJECT; in SetFieldValueImpl()
1914 return JDWP::ERR_INVALID_OBJECT; in SetFieldValueImpl()
1921 return JDWP::ERR_NONE; in SetFieldValueImpl()
1924 JDWP::JdwpError Dbg::SetFieldValue(JDWP::ObjectId object_id, JDWP::FieldId field_id, uint64_t value, in SetFieldValue()
1929 JDWP::JdwpError Dbg::SetStaticFieldValue(JDWP::FieldId field_id, uint64_t value, int width) { in SetStaticFieldValue()
1933 JDWP::JdwpError Dbg::StringToUtf8(JDWP::ObjectId string_id, std::string* str) { in StringToUtf8()
1936 return JDWP::ERR_INVALID_OBJECT; in StringToUtf8()
1943 return JDWP::ERR_INVALID_STRING; in StringToUtf8()
1947 return JDWP::ERR_NONE; in StringToUtf8()
1950 void Dbg::OutputJValue(JDWP::JdwpTag tag, const JValue* return_value, JDWP::ExpandBuf* pReply) { in OutputJValue()
1953 if (tag == JDWP::JT_BOOLEAN || tag == JDWP::JT_BYTE) { in OutputJValue()
1955 } else if (tag == JDWP::JT_CHAR || tag == JDWP::JT_SHORT) { in OutputJValue()
1957 } else if (tag == JDWP::JT_FLOAT || tag == JDWP::JT_INT) { in OutputJValue()
1959 } else if (tag == JDWP::JT_DOUBLE || tag == JDWP::JT_LONG) { in OutputJValue()
1962 CHECK_EQ(tag, JDWP::JT_VOID); in OutputJValue()
1972 JDWP::JdwpError Dbg::GetThreadName(JDWP::ObjectId thread_id, std::string& name) { in GetThreadName()
1976 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread); in GetThreadName()
1977 if (error != JDWP::ERR_NONE && error != JDWP::ERR_THREAD_NOT_ALIVE) { in GetThreadName()
1990 return JDWP::ERR_NONE; in GetThreadName()
1993 JDWP::JdwpError Dbg::GetThreadGroup(JDWP::ObjectId thread_id, JDWP::ExpandBuf* pReply) { in GetThreadGroup()
1997 return JDWP::ERR_INVALID_OBJECT; in GetThreadGroup()
2001 JDWP::JdwpError error; in GetThreadGroup()
2007 if (error == JDWP::ERR_THREAD_NOT_ALIVE) { in GetThreadGroup()
2009 expandBufAddObjectId(pReply, JDWP::ObjectId(0)); in GetThreadGroup()
2010 error = JDWP::ERR_NONE; in GetThreadGroup()
2011 } else if (error == JDWP::ERR_NONE) { in GetThreadGroup()
2018 JDWP::ObjectId thread_group_id = gRegistry->Add(group); in GetThreadGroup()
2026 JDWP::ObjectId thread_group_id, JDWP::JdwpError* error) in DecodeThreadGroup()
2030 *error = JDWP::ERR_INVALID_OBJECT; in DecodeThreadGroup()
2037 *error = JDWP::ERR_INVALID_THREAD_GROUP; in DecodeThreadGroup()
2040 *error = JDWP::ERR_NONE; in DecodeThreadGroup()
2044 JDWP::JdwpError Dbg::GetThreadGroupName(JDWP::ObjectId thread_group_id, JDWP::ExpandBuf* pReply) { in GetThreadGroupName()
2046 JDWP::JdwpError error; in GetThreadGroupName()
2048 if (error != JDWP::ERR_NONE) { in GetThreadGroupName()
2060 return JDWP::ERR_NONE; in GetThreadGroupName()
2063 JDWP::JdwpError Dbg::GetThreadGroupParent(JDWP::ObjectId thread_group_id, JDWP::ExpandBuf* pReply) { in GetThreadGroupParent()
2065 JDWP::JdwpError error; in GetThreadGroupParent()
2067 if (error != JDWP::ERR_NONE) { in GetThreadGroupParent()
2078 JDWP::ObjectId parent_group_id = gRegistry->Add(parent); in GetThreadGroupParent()
2080 return JDWP::ERR_NONE; in GetThreadGroupParent()
2084 std::vector<JDWP::ObjectId>* child_thread_group_ids) in GetChildThreadGroups()
2106 JDWP::JdwpError Dbg::GetThreadGroupChildren(JDWP::ObjectId thread_group_id, in GetThreadGroupChildren()
2107 JDWP::ExpandBuf* pReply) { in GetThreadGroupChildren()
2109 JDWP::JdwpError error; in GetThreadGroupChildren()
2111 if (error != JDWP::ERR_NONE) { in GetThreadGroupChildren()
2117 std::vector<JDWP::ObjectId> child_thread_ids; in GetThreadGroupChildren()
2120 for (JDWP::ObjectId child_thread_id : child_thread_ids) { in GetThreadGroupChildren()
2127 std::vector<JDWP::ObjectId> child_thread_groups_ids; in GetThreadGroupChildren()
2130 for (JDWP::ObjectId child_thread_group_id : child_thread_groups_ids) { in GetThreadGroupChildren()
2135 return JDWP::ERR_NONE; in GetThreadGroupChildren()
2138 JDWP::ObjectId Dbg::GetSystemThreadGroupId() { in GetSystemThreadGroupId()
2145 JDWP::JdwpThreadStatus Dbg::ToJdwpThreadStatus(ThreadState state) { in ToJdwpThreadStatus()
2148 return JDWP::TS_MONITOR; in ToJdwpThreadStatus()
2152 return JDWP::TS_RUNNING; in ToJdwpThreadStatus()
2154 return JDWP::TS_SLEEPING; in ToJdwpThreadStatus()
2157 return JDWP::TS_ZOMBIE; in ToJdwpThreadStatus()
2172 return JDWP::TS_WAIT; in ToJdwpThreadStatus()
2176 return JDWP::TS_ZOMBIE; in ToJdwpThreadStatus()
2179 JDWP::JdwpError Dbg::GetThreadStatus(JDWP::ObjectId thread_id, JDWP::JdwpThreadStatus* pThreadStatu… in GetThreadStatus()
2180 JDWP::JdwpSuspendStatus* pSuspendStatus) { in GetThreadStatus()
2183 *pSuspendStatus = JDWP::SUSPEND_STATUS_NOT_SUSPENDED; in GetThreadStatus()
2187 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread); in GetThreadStatus()
2188 if (error != JDWP::ERR_NONE) { in GetThreadStatus()
2189 if (error == JDWP::ERR_THREAD_NOT_ALIVE) { in GetThreadStatus()
2190 *pThreadStatus = JDWP::TS_ZOMBIE; in GetThreadStatus()
2191 return JDWP::ERR_NONE; in GetThreadStatus()
2197 *pSuspendStatus = JDWP::SUSPEND_STATUS_SUSPENDED; in GetThreadStatus()
2201 return JDWP::ERR_NONE; in GetThreadStatus()
2204 JDWP::JdwpError Dbg::GetThreadDebugSuspendCount(JDWP::ObjectId thread_id, JDWP::ExpandBuf* pReply) { in GetThreadDebugSuspendCount()
2208 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread); in GetThreadDebugSuspendCount()
2209 if (error != JDWP::ERR_NONE) { in GetThreadDebugSuspendCount()
2214 return JDWP::ERR_NONE; in GetThreadDebugSuspendCount()
2217 JDWP::JdwpError Dbg::Interrupt(JDWP::ObjectId thread_id) { in Interrupt()
2221 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread); in Interrupt()
2222 if (error != JDWP::ERR_NONE) { in Interrupt()
2226 return JDWP::ERR_NONE; in Interrupt()
2242 void Dbg::GetThreads(mirror::Object* thread_group, std::vector<JDWP::ObjectId>* thread_ids) { in GetThreads()
2296 JDWP::JdwpError Dbg::GetThreadFrameCount(JDWP::ObjectId thread_id, size_t& result) { in GetThreadFrameCount()
2300 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread); in GetThreadFrameCount()
2301 if (error != JDWP::ERR_NONE) { in GetThreadFrameCount()
2305 return JDWP::ERR_THREAD_NOT_SUSPENDED; in GetThreadFrameCount()
2308 return JDWP::ERR_NONE; in GetThreadFrameCount()
2311 JDWP::JdwpError Dbg::GetThreadFrames(JDWP::ObjectId thread_id, size_t start_frame, in GetThreadFrames()
2312 size_t frame_count, JDWP::ExpandBuf* buf) { in GetThreadFrames()
2315 GetFrameVisitor(Thread* thread, size_t start_frame, size_t frame_count, JDWP::ExpandBuf* buf) in GetThreadFrames()
2332 JDWP::FrameId frame_id(GetFrameId()); in GetThreadFrames()
2333 JDWP::JdwpLocation location; in GetThreadFrames()
2347 JDWP::ExpandBuf* buf_; in GetThreadFrames()
2353 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread); in GetThreadFrames()
2354 if (error != JDWP::ERR_NONE) { in GetThreadFrames()
2358 return JDWP::ERR_THREAD_NOT_SUSPENDED; in GetThreadFrames()
2362 return JDWP::ERR_NONE; in GetThreadFrames()
2365 JDWP::ObjectId Dbg::GetThreadSelfId() { in GetThreadSelfId()
2369 JDWP::ObjectId Dbg::GetThreadId(Thread* thread) { in GetThreadId()
2382 JDWP::JdwpError Dbg::SuspendThread(JDWP::ObjectId thread_id, bool request_suspension) { in SuspendThread()
2390 return JDWP::ERR_THREAD_NOT_ALIVE; in SuspendThread()
2400 return JDWP::ERR_NONE; in SuspendThread()
2402 return JDWP::ERR_INTERNAL; in SuspendThread()
2404 return JDWP::ERR_THREAD_NOT_ALIVE; in SuspendThread()
2408 void Dbg::ResumeThread(JDWP::ObjectId thread_id) { in ResumeThread()
2435 GetThisVisitor(Thread* thread, Context* context, JDWP::FrameId frame_id) in GetThisVisitor()
2451 JDWP::FrameId frame_id;
2454 JDWP::JdwpError Dbg::GetThisObject(JDWP::ObjectId thread_id, JDWP::FrameId frame_id, in GetThisObject()
2455 JDWP::ObjectId* result) { in GetThisObject()
2460 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread); in GetThisObject()
2461 if (error != JDWP::ERR_NONE) { in GetThisObject()
2465 return JDWP::ERR_THREAD_NOT_SUSPENDED; in GetThisObject()
2472 return JDWP::ERR_NONE; in GetThisObject()
2478 FindFrameVisitor(Thread* thread, Context* context, JDWP::FrameId frame_id) in FindFrameVisitor()
2480 : StackVisitor(thread, context), frame_id_(frame_id), error_(JDWP::ERR_INVALID_FRAMEID) {} in FindFrameVisitor()
2491 error_ = JDWP::ERR_OPAQUE_FRAME; in VisitFrame()
2494 error_ = JDWP::ERR_NONE; in VisitFrame()
2499 JDWP::JdwpError GetError() const { in GetError()
2504 const JDWP::FrameId frame_id_;
2505 JDWP::JdwpError error_;
2508 JDWP::JdwpError Dbg::GetLocalValues(JDWP::Request* request, JDWP::ExpandBuf* pReply) { in GetLocalValues()
2509 JDWP::ObjectId thread_id = request->ReadThreadId(); in GetLocalValues()
2510 JDWP::FrameId frame_id = request->ReadFrameId(); in GetLocalValues()
2516 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread); in GetLocalValues()
2517 if (error != JDWP::ERR_NONE) { in GetLocalValues()
2525 if (visitor.GetError() != JDWP::ERR_NONE) { in GetLocalValues()
2534 JDWP::JdwpTag reqSigByte = request->ReadTag(); in GetLocalValues()
2540 JDWP::JdwpError error = Dbg::GetLocalValue(visitor, soa, slot, reqSigByte, ptr, width); in GetLocalValues()
2541 if (error != JDWP::ERR_NONE) { in GetLocalValues()
2545 return JDWP::ERR_NONE; in GetLocalValues()
2548 JDWP::JdwpError Dbg::GetLocalValue(const StackVisitor& visitor, ScopedObjectAccessUnchecked& soa, in GetLocalValue()
2549 int slot, JDWP::JdwpTag tag, uint8_t* buf, size_t width) { in GetLocalValue()
2554 constexpr JDWP::JdwpError kFailureErrorCode = JDWP::ERR_ABSENT_INFORMATION; in GetLocalValue()
2556 case JDWP::JT_BOOLEAN: { in GetLocalValue()
2561 JDWP::Set1(buf + 1, intVal != 0); in GetLocalValue()
2568 case JDWP::JT_BYTE: { in GetLocalValue()
2573 JDWP::Set1(buf + 1, intVal); in GetLocalValue()
2580 case JDWP::JT_SHORT: in GetLocalValue()
2581 case JDWP::JT_CHAR: { in GetLocalValue()
2586 JDWP::Set2BE(buf + 1, intVal); in GetLocalValue()
2593 case JDWP::JT_INT: { in GetLocalValue()
2598 JDWP::Set4BE(buf + 1, intVal); in GetLocalValue()
2605 case JDWP::JT_FLOAT: { in GetLocalValue()
2610 JDWP::Set4BE(buf + 1, intVal); in GetLocalValue()
2617 case JDWP::JT_ARRAY: in GetLocalValue()
2618 case JDWP::JT_CLASS_LOADER: in GetLocalValue()
2619 case JDWP::JT_CLASS_OBJECT: in GetLocalValue()
2620 case JDWP::JT_OBJECT: in GetLocalValue()
2621 case JDWP::JT_STRING: in GetLocalValue()
2622 case JDWP::JT_THREAD: in GetLocalValue()
2623 case JDWP::JT_THREAD_GROUP: { in GetLocalValue()
2624 CHECK_EQ(width, sizeof(JDWP::ObjectId)); in GetLocalValue()
2633 JDWP::SetObjectId(buf + 1, gRegistry->Add(o)); in GetLocalValue()
2640 case JDWP::JT_DOUBLE: { in GetLocalValue()
2645 JDWP::Set8BE(buf + 1, longVal); in GetLocalValue()
2652 case JDWP::JT_LONG: { in GetLocalValue()
2657 JDWP::Set8BE(buf + 1, longVal); in GetLocalValue()
2670 JDWP::Set1(buf, tag); in GetLocalValue()
2671 return JDWP::ERR_NONE; in GetLocalValue()
2674 JDWP::JdwpError Dbg::SetLocalValues(JDWP::Request* request) { in SetLocalValues()
2675 JDWP::ObjectId thread_id = request->ReadThreadId(); in SetLocalValues()
2676 JDWP::FrameId frame_id = request->ReadFrameId(); in SetLocalValues()
2682 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread); in SetLocalValues()
2683 if (error != JDWP::ERR_NONE) { in SetLocalValues()
2691 if (visitor.GetError() != JDWP::ERR_NONE) { in SetLocalValues()
2699 JDWP::JdwpTag sigByte = request->ReadTag(); in SetLocalValues()
2704 JDWP::JdwpError error = Dbg::SetLocalValue(visitor, slot, sigByte, value, width); in SetLocalValues()
2705 if (error != JDWP::ERR_NONE) { in SetLocalValues()
2709 return JDWP::ERR_NONE; in SetLocalValues()
2712 JDWP::JdwpError Dbg::SetLocalValue(StackVisitor& visitor, int slot, JDWP::JdwpTag tag, in SetLocalValue()
2718 constexpr JDWP::JdwpError kFailureErrorCode = JDWP::ERR_ABSENT_INFORMATION; in SetLocalValue()
2720 case JDWP::JT_BOOLEAN: in SetLocalValue()
2721 case JDWP::JT_BYTE: in SetLocalValue()
2729 case JDWP::JT_SHORT: in SetLocalValue()
2730 case JDWP::JT_CHAR: in SetLocalValue()
2738 case JDWP::JT_INT: in SetLocalValue()
2746 case JDWP::JT_FLOAT: in SetLocalValue()
2754 case JDWP::JT_ARRAY: in SetLocalValue()
2755 case JDWP::JT_CLASS_LOADER: in SetLocalValue()
2756 case JDWP::JT_CLASS_OBJECT: in SetLocalValue()
2757 case JDWP::JT_OBJECT: in SetLocalValue()
2758 case JDWP::JT_STRING: in SetLocalValue()
2759 case JDWP::JT_THREAD: in SetLocalValue()
2760 case JDWP::JT_THREAD_GROUP: { in SetLocalValue()
2761 CHECK_EQ(width, sizeof(JDWP::ObjectId)); in SetLocalValue()
2762 mirror::Object* o = gRegistry->Get<mirror::Object*>(static_cast<JDWP::ObjectId>(value)); in SetLocalValue()
2765 return JDWP::ERR_INVALID_OBJECT; in SetLocalValue()
2773 case JDWP::JT_DOUBLE: { in SetLocalValue()
2781 case JDWP::JT_LONG: { in SetLocalValue()
2793 return JDWP::ERR_NONE; in SetLocalValue()
2796 static void SetEventLocation(JDWP::EventLocation* location, mirror::ArtMethod* m, uint32_t dex_pc) in SetEventLocation()
2814 JDWP::EventLocation location; in PostLocationEvent()
2827 JDWP::EventLocation location; in PostFieldAccessEvent()
2842 JDWP::EventLocation location; in PostFieldModificationEvent()
2854 JDWP::EventLocation exception_throw_location; in PostException()
2856 JDWP::EventLocation exception_catch_location; in PostException()
2887 if (single_step_control->step_depth == JDWP::SD_INTO) { in UpdateDebugger()
2894 } else if (single_step_control->step_size == JDWP::SS_MIN) { in UpdateDebugger()
2901 } else if (single_step_control->step_depth == JDWP::SD_OVER) { in UpdateDebugger()
2916 if (single_step_control->step_size == JDWP::SS_MIN) { in UpdateDebugger()
2925 CHECK_EQ(single_step_control->step_depth, JDWP::SD_OUT); in UpdateDebugger()
3267 void Dbg::WatchLocation(const JDWP::JdwpLocation* location, DeoptimizationRequest* req) { in WatchLocation()
3302 void Dbg::UnwatchLocation(const JDWP::JdwpLocation* location, DeoptimizationRequest* req) { in UnwatchLocation()
3348 ScopedThreadSuspension(Thread* self, JDWP::ObjectId thread_id) in ScopedThreadSuspension()
3352 error_(JDWP::ERR_NONE), in ScopedThreadSuspension()
3360 if (error_ == JDWP::ERR_NONE) { in ScopedThreadSuspension()
3377 error_ = JDWP::ERR_INVALID_THREAD; in ScopedThreadSuspension()
3390 JDWP::JdwpError GetError() const { in GetError()
3402 JDWP::JdwpError error_;
3407 JDWP::JdwpError Dbg::ConfigureStep(JDWP::ObjectId thread_id, JDWP::JdwpStepSize step_size, in ConfigureStep()
3408 JDWP::JdwpStepDepth step_depth) { in ConfigureStep()
3411 if (sts.GetError() != JDWP::ERR_NONE) { in ConfigureStep()
3538 return JDWP::ERR_NONE; in ConfigureStep()
3541 void Dbg::UnconfigureStep(JDWP::ObjectId thread_id) { in UnconfigureStep()
3545 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread); in UnconfigureStep()
3546 if (error == JDWP::ERR_NONE) { in UnconfigureStep()
3553 static char JdwpTagToShortyChar(JDWP::JdwpTag tag) { in JdwpTagToShortyChar()
3559 case JDWP::JT_BYTE: return 'B'; in JdwpTagToShortyChar()
3560 case JDWP::JT_CHAR: return 'C'; in JdwpTagToShortyChar()
3561 case JDWP::JT_FLOAT: return 'F'; in JdwpTagToShortyChar()
3562 case JDWP::JT_DOUBLE: return 'D'; in JdwpTagToShortyChar()
3563 case JDWP::JT_INT: return 'I'; in JdwpTagToShortyChar()
3564 case JDWP::JT_LONG: return 'J'; in JdwpTagToShortyChar()
3565 case JDWP::JT_SHORT: return 'S'; in JdwpTagToShortyChar()
3566 case JDWP::JT_VOID: return 'V'; in JdwpTagToShortyChar()
3567 case JDWP::JT_BOOLEAN: return 'Z'; in JdwpTagToShortyChar()
3570 case JDWP::JT_ARRAY: in JdwpTagToShortyChar()
3571 case JDWP::JT_OBJECT: in JdwpTagToShortyChar()
3572 case JDWP::JT_STRING: in JdwpTagToShortyChar()
3573 case JDWP::JT_THREAD: in JdwpTagToShortyChar()
3574 case JDWP::JT_THREAD_GROUP: in JdwpTagToShortyChar()
3575 case JDWP::JT_CLASS_LOADER: in JdwpTagToShortyChar()
3576 case JDWP::JT_CLASS_OBJECT: in JdwpTagToShortyChar()
3581 JDWP::JdwpError Dbg::InvokeMethod(JDWP::ObjectId thread_id, JDWP::ObjectId object_id, in InvokeMethod()
3582 JDWP::RefTypeId class_id, JDWP::MethodId method_id, in InvokeMethod()
3584 JDWP::JdwpTag* arg_types, uint32_t options, in InvokeMethod()
3585 JDWP::JdwpTag* pResultTag, uint64_t* pResultValue, in InvokeMethod()
3586 JDWP::ObjectId* pExceptionId) { in InvokeMethod()
3595 JDWP::JdwpError error = DecodeThread(soa, thread_id, targetThread); in InvokeMethod()
3596 if (error != JDWP::ERR_NONE) { in InvokeMethod()
3603 return JDWP::ERR_INVALID_THREAD; in InvokeMethod()
3627 return JDWP::ERR_THREAD_SUSPENDED; // Probably not expected here. in InvokeMethod()
3630 JDWP::JdwpError status; in InvokeMethod()
3633 return JDWP::ERR_INVALID_OBJECT; in InvokeMethod()
3638 return JDWP::ERR_INVALID_OBJECT; in InvokeMethod()
3649 return JDWP::ERR_INVALID_METHODID; in InvokeMethod()
3653 return JDWP::ERR_INVALID_METHODID; in InvokeMethod()
3657 return JDWP::ERR_INVALID_METHODID; in InvokeMethod()
3665 return JDWP::ERR_ILLEGAL_ARGUMENT; in InvokeMethod()
3676 return JDWP::ERR_ILLEGAL_ARGUMENT; in InvokeMethod()
3684 return JDWP::ERR_INVALID_OBJECT; in InvokeMethod()
3687 return JDWP::ERR_ILLEGAL_ARGUMENT; in InvokeMethod()
3726 if ((options & JDWP::INVOKE_SINGLE_THREADED) == 0) { in InvokeMethod()
3753 if ((options & JDWP::INVOKE_SINGLE_THREADED) == 0) { in InvokeMethod()
3797 if ((pReq->options & JDWP::INVOKE_NONVIRTUAL) == 0 && pReq->receiver != NULL) { in ExecuteMethod()
3822 } else if (pReq->result_tag == JDWP::JT_OBJECT) { in ExecuteMethod()
3824 JDWP::JdwpTag new_tag = TagFromObject(soa, pReq->result_value.GetL()); in ExecuteMethod()
3861 bool Dbg::DdmHandlePacket(JDWP::Request& request, uint8_t** pReplyBuf, int* pReplyLen) { in DdmHandlePacket()
3929 JDWP::Set4BE(reply + 0, type); in DdmHandlePacket()
3930 JDWP::Set4BE(reply + 4, length); in DdmHandlePacket()
3983 JDWP::Set4BE(&buf[0], t->GetThreadId()); in DdmSendThreadNotification()
3994 JDWP::Append4BE(bytes, t->GetThreadId()); in DdmSendThreadNotification()
3995 JDWP::AppendUtf16BE(bytes, chars, char_count); in DdmSendThreadNotification()
4124 JDWP::Append4BE(bytes, heap_count); in DdmSendHeapInfo()
4125 JDWP::Append4BE(bytes, 1); // Heap id (bogus; we only have one heap). in DdmSendHeapInfo()
4126 JDWP::Append8BE(bytes, MilliTime()); in DdmSendHeapInfo()
4127 JDWP::Append1BE(bytes, reason); in DdmSendHeapInfo()
4128 JDWP::Append4BE(bytes, heap->GetMaxMemory()); // Max allowed heap size in bytes. in DdmSendHeapInfo()
4129 JDWP::Append4BE(bytes, heap->GetTotalMemory()); // Current heap size in bytes. in DdmSendHeapInfo()
4130 JDWP::Append4BE(bytes, heap->GetBytesAllocated()); in DdmSendHeapInfo()
4131 JDWP::Append4BE(bytes, heap->GetObjectsAllocated()); in DdmSendHeapInfo()
4197 JDWP::Write4BE(&p_, 1); // Heap id (bogus; we only have one heap). in EnsureHeader()
4198 JDWP::Write1BE(&p_, 8); // Size of allocation unit, in bytes. in EnsureHeader()
4200 … JDWP::Write4BE(&p_, reinterpret_cast<uintptr_t>(chunk_ptr)); // virtual address of segment start. in EnsureHeader()
4201 JDWP::Write4BE(&p_, 0); // offset of this piece (relative to the virtual address). in EnsureHeader()
4205 JDWP::Write4BE(&p_, 0x55555555); in EnsureHeader()
4218 JDWP::Set4BE(pieceLenField_, totalAllocationUnits_); in Flush()
4416 JDWP::Set4BE(&heap_id[0], 1); // Heap id (bogus; we only have one heap). in DdmSendHeapSegments()
4678 JDWP::AppendUtf16BE(bytes, s_utf16.get(), s_len); in WriteTo()
4783 JDWP::Append1BE(bytes, kMessageHeaderLen); in GetRecentAllocations()
4784 JDWP::Append1BE(bytes, kEntryHeaderLen); in GetRecentAllocations()
4785 JDWP::Append1BE(bytes, kStackFrameLen); in GetRecentAllocations()
4792 JDWP::Append2BE(bytes, capped_count); in GetRecentAllocations()
4794 JDWP::Append4BE(bytes, 0); // We'll patch this later... in GetRecentAllocations()
4795 JDWP::Append2BE(bytes, class_names.Size()); in GetRecentAllocations()
4796 JDWP::Append2BE(bytes, method_names.Size()); in GetRecentAllocations()
4797 JDWP::Append2BE(bytes, filenames.Size()); in GetRecentAllocations()
4811 JDWP::Append4BE(bytes, record->ByteCount()); in GetRecentAllocations()
4812 JDWP::Append2BE(bytes, record->ThinLockId()); in GetRecentAllocations()
4813 JDWP::Append2BE(bytes, allocated_object_class_name_index); in GetRecentAllocations()
4814 JDWP::Append1BE(bytes, stack_depth); in GetRecentAllocations()
4826 JDWP::Append2BE(bytes, class_name_index); in GetRecentAllocations()
4827 JDWP::Append2BE(bytes, method_name_index); in GetRecentAllocations()
4828 JDWP::Append2BE(bytes, file_name_index); in GetRecentAllocations()
4829 JDWP::Append2BE(bytes, record->StackElement(stack_frame)->LineNumber()); in GetRecentAllocations()
4837 JDWP::Set4BE(&bytes[string_table_offset], bytes.size()); in GetRecentAllocations()