Home | History | Annotate | Download | only in runtime

Lines Matching defs:bytes

4394     std::vector<uint8_t> bytes;
4395 JDWP::Append4BE(bytes, t->GetThreadId());
4398 JDWP::AppendUtf16CompressedBE(bytes, chars_compressed, char_count);
4400 JDWP::AppendUtf16BE(bytes, chars, char_count);
4402 CHECK_EQ(bytes.size(), char_count*2 + sizeof(uint32_t)*2);
4403 Dbg::DdmSendChunk(type, bytes);
4454 void Dbg::DdmSendChunk(uint32_t type, const std::vector<uint8_t>& bytes) {
4455 DdmSendChunk(type, bytes.size(), &bytes[0]);
4526 * [u4]: max heap size in bytes (-Xmx)
4527 * [u4]: current heap size in bytes
4528 * [u4]: current number of bytes allocated
4533 std::vector<uint8_t> bytes;
4534 JDWP::Append4BE(bytes, heap_count);
4535 JDWP::Append4BE(bytes, 1); // Heap id (bogus; we only have one heap).
4536 JDWP::Append8BE(bytes, MilliTime());
4537 JDWP::Append1BE(bytes, reason);
4538 JDWP::Append4BE(bytes, heap->GetMaxMemory()); // Max allowed heap size in bytes.
4539 JDWP::Append4BE(bytes, heap->GetTotalMemory()); // Current heap size in bytes.
4540 JDWP::Append4BE(bytes, heap->GetBytesAllocated());
4541 JDWP::Append4BE(bytes, heap->GetObjectsAllocated());
4542 CHECK_EQ(bytes.size(), 4U + (heap_count * (4 + 8 + 1 + 4 + 4 + 4 + 4)));
4543 Dbg::DdmSendChunk(CHUNK_TYPE("HPIF"), bytes);
4607 JDWP::Write1BE(&p_, 8); // Size of allocation unit, in bytes.
4720 // We need to use two bytes for every fractional 256 allocation units used by the chunk plus
4721 // 17 bytes for any header.
4735 << needed << " bytes)";
4903 LOG(INFO) << StringPrintf(" Thread %-2d %6zd bytes ", record->GetTid(), record->ByteCount())
4945 void WriteTo(std::vector<uint8_t>& bytes) const {
4951 JDWP::AppendUtf16BE(bytes, s_utf16.get(), s_len);
5015 std::vector<uint8_t> bytes;
5065 JDWP::Append1BE(bytes, kMessageHeaderLen);
5066 JDWP::Append1BE(bytes, kEntryHeaderLen);
5067 JDWP::Append1BE(bytes, kStackFrameLen);
5074 JDWP::Append2BE(bytes, capped_count);
5075 size_t string_table_offset = bytes.size();
5076 JDWP::Append4BE(bytes, 0); // We'll patch this later...
5077 JDWP::Append2BE(bytes, class_names.Size());
5078 JDWP::Append2BE(bytes, method_names.Size());
5079 JDWP::Append2BE(bytes, filenames.Size());
5096 JDWP::Append4BE(bytes, record->ByteCount());
5097 JDWP::Append2BE(bytes, static_cast<uint16_t>(record->GetTid()));
5098 JDWP::Append2BE(bytes, allocated_object_class_name_index);
5099 JDWP::Append1BE(bytes, stack_depth);
5111 JDWP::Append2BE(bytes, class_name_index);
5112 JDWP::Append2BE(bytes, method_name_index);
5113 JDWP::Append2BE(bytes, file_name_index);
5114 JDWP::Append2BE(bytes, record->StackElement(stack_frame).ComputeLineNumber());
5121 JDWP::Set4BE(&bytes[string_table_offset], bytes.size());
5122 class_names.WriteTo(bytes);
5123 method_names.WriteTo(bytes);
5124 filenames.WriteTo(bytes);
5127 jbyteArray result = env->NewByteArray(bytes.size());
5129 env->SetByteArrayRegion(result, 0, bytes.size(), reinterpret_cast<const jbyte*>(&bytes[0]));