/art/runtime/jdwp/ |
D | jdwp_bits.h | 35 static inline void Append1BE(std::vector<uint8_t>& bytes, uint8_t value) { in Append1BE() argument 36 bytes.push_back(value); in Append1BE() 39 static inline void Append2BE(std::vector<uint8_t>& bytes, uint16_t value) { in Append2BE() argument 40 bytes.push_back(static_cast<uint8_t>(value >> 8)); in Append2BE() 41 bytes.push_back(static_cast<uint8_t>(value)); in Append2BE() 44 static inline void Append4BE(std::vector<uint8_t>& bytes, uint32_t value) { in Append4BE() argument 45 bytes.push_back(static_cast<uint8_t>(value >> 24)); in Append4BE() 46 bytes.push_back(static_cast<uint8_t>(value >> 16)); in Append4BE() 47 bytes.push_back(static_cast<uint8_t>(value >> 8)); in Append4BE() 48 bytes.push_back(static_cast<uint8_t>(value)); in Append4BE() [all …]
|
D | jdwp_request.cc | 28 Request::Request(const uint8_t* bytes, uint32_t available) : p_(bytes) { in Request() argument 30 end_ = bytes + byte_count_; in Request()
|
/art/runtime/native/ |
D | org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc | 124 std::vector<uint8_t>& bytes = *reinterpret_cast<std::vector<uint8_t>*>(context); in ThreadStatsGetterCallback() local 125 JDWP::Append4BE(bytes, t->GetThreadId()); in ThreadStatsGetterCallback() 126 JDWP::Append1BE(bytes, Dbg::ToJdwpThreadStatus(t->GetState())); in ThreadStatsGetterCallback() 127 JDWP::Append4BE(bytes, t->GetTid()); in ThreadStatsGetterCallback() 128 JDWP::Append4BE(bytes, utime); in ThreadStatsGetterCallback() 129 JDWP::Append4BE(bytes, stime); in ThreadStatsGetterCallback() 130 JDWP::Append1BE(bytes, t->IsDaemon()); in ThreadStatsGetterCallback() 134 std::vector<uint8_t> bytes; in DdmVmInternal_getThreadStats() local 143 JDWP::Append1BE(bytes, kThstHeaderLen); in DdmVmInternal_getThreadStats() 144 JDWP::Append1BE(bytes, kThstBytesPerEntry); in DdmVmInternal_getThreadStats() [all …]
|
D | dalvik_system_VMRuntime.cc | 185 static void VMRuntime_registerNativeAllocation(JNIEnv* env, jobject, jint bytes) { in VMRuntime_registerNativeAllocation() argument 186 if (UNLIKELY(bytes < 0)) { in VMRuntime_registerNativeAllocation() 188 ThrowRuntimeException("allocation size negative %d", bytes); in VMRuntime_registerNativeAllocation() 191 Runtime::Current()->GetHeap()->RegisterNativeAllocation(env, static_cast<size_t>(bytes)); in VMRuntime_registerNativeAllocation() 194 static void VMRuntime_registerNativeFree(JNIEnv* env, jobject, jint bytes) { in VMRuntime_registerNativeFree() argument 195 if (UNLIKELY(bytes < 0)) { in VMRuntime_registerNativeFree() 197 ThrowRuntimeException("allocation size negative %d", bytes); in VMRuntime_registerNativeFree() 200 Runtime::Current()->GetHeap()->RegisterNativeFree(env, static_cast<size_t>(bytes)); in VMRuntime_registerNativeFree()
|
/art/test/004-NativeAllocations/src/ |
D | Main.java | 29 private int bytes; field in Main.NativeAllocation 31 NativeAllocation(int bytes) throws Exception { in NativeAllocation() argument 32 this.bytes = bytes; in NativeAllocation() 33 register_native_allocation.invoke(runtime, bytes); in NativeAllocation() 35 nativeBytes += bytes; in NativeAllocation() 44 nativeBytes -= bytes; in finalize() 46 register_native_free.invoke(runtime, bytes); in finalize()
|
/art/runtime/arch/x86_64/ |
D | memcmp16_x86_64.S | 701 jnc L(16bytes) 706 jnc L(16bytes) 711 jnc L(16bytes) 715 jmp L(16bytes) 720 jmp L(16bytes) 724 jmp L(16bytes) 728 jmp L(16bytes) 732 jmp L(16bytes) 736 jmp L(16bytes) 740 jmp L(16bytes) [all …]
|
/art/test/102-concurrent-gc/src/ |
D | Main.java | 24 public byte[] bytes; field in Main.ByteContainer 37 l[index].bytes = new byte[bufferSize]; in main() 57 byte[] temp = l[a].bytes; in main() 58 l[a].bytes = l[b].bytes; in main() 59 l[b].bytes = temp; in main()
|
/art/compiler/utils/ |
D | arena_allocator.h | 74 void RecordAlloc(size_t bytes, ArenaAllocKind kind) { UNUSED(bytes); UNUSED(kind); } in RecordAlloc() argument 90 void RecordAlloc(size_t bytes, ArenaAllocKind kind); 168 void* Alloc(size_t bytes, ArenaAllocKind kind) ALWAYS_INLINE { in Alloc() argument 170 return AllocValgrind(bytes, kind); in Alloc() 172 bytes = RoundUp(bytes, 8); in Alloc() 173 if (UNLIKELY(ptr_ + bytes > end_)) { in Alloc() 175 ObtainNewArenaForAllocation(bytes); in Alloc() 180 ArenaAllocatorStats::RecordAlloc(bytes, kind); in Alloc() 182 ptr_ += bytes; in Alloc() 190 void* AllocValgrind(size_t bytes, ArenaAllocKind kind);
|
D | scoped_arena_allocator.h | 66 void* Alloc(size_t bytes, ArenaAllocKind kind) ALWAYS_INLINE { in Alloc() argument 68 return AllocValgrind(bytes, kind); in Alloc() 70 size_t rounded_bytes = RoundUp(bytes, 8); in Alloc() 75 CurrentStats()->RecordAlloc(bytes, kind); in Alloc() 83 void* AllocValgrind(size_t bytes, ArenaAllocKind kind); 118 void* Alloc(size_t bytes, ArenaAllocKind kind) ALWAYS_INLINE { in Alloc() argument 120 return arena_stack_->Alloc(bytes, kind); in Alloc()
|
D | scoped_arena_allocator.cc | 94 void* ArenaStack::AllocValgrind(size_t bytes, ArenaAllocKind kind) { in AllocValgrind() argument 95 size_t rounded_bytes = RoundUp(bytes + kValgrindRedZoneBytes, 8); in AllocValgrind() 100 CurrentStats()->RecordAlloc(bytes, kind); in AllocValgrind() 102 VALGRIND_MAKE_MEM_UNDEFINED(ptr, bytes); in AllocValgrind() 103 VALGRIND_MAKE_MEM_NOACCESS(ptr + bytes, rounded_bytes - bytes); in AllocValgrind()
|
D | arena_allocator.cc | 66 void ArenaAllocatorStatsImpl<kCount>::RecordAlloc(size_t bytes, ArenaAllocKind kind) { in RecordAlloc() argument 67 alloc_stats_[kind] += bytes; in RecordAlloc() 228 void* ArenaAllocator::AllocValgrind(size_t bytes, ArenaAllocKind kind) { in AllocValgrind() argument 229 size_t rounded_bytes = RoundUp(bytes + kValgrindRedZoneBytes, 8); in AllocValgrind() 244 VALGRIND_MAKE_MEM_NOACCESS(ret + bytes, rounded_bytes - bytes); in AllocValgrind()
|
/art/test/407-arrays/src/ |
D | Main.java | 32 static void $opt$testReads(boolean[] bools, byte[] bytes, char[] chars, short[] shorts, in $opt$testReads() argument 37 assertEquals(0, bytes[0]); in $opt$testReads() 38 assertEquals(0, bytes[index]); in $opt$testReads() 56 static void $opt$testWrites(boolean[] bools, byte[] bytes, char[] chars, short[] shorts, in $opt$testWrites() argument 63 bytes[0] = -4; in $opt$testWrites() 64 assertEquals(-4, bytes[0]); in $opt$testWrites() 65 bytes[index] = -8; in $opt$testWrites() 66 assertEquals(-8, bytes[index]); in $opt$testWrites()
|
/art/runtime/arch/x86/ |
D | memcmp16_x86.S | 851 je L(8bytes) 853 je L(10bytes) 855 je L(12bytes) 856 jmp L(14bytes) 863 je L(16bytes) 865 je L(18bytes) 867 je L(20bytes) 868 jmp L(22bytes) 875 je L(24bytes) 877 je L(26bytes) [all …]
|
/art/runtime/gc/collector/ |
D | garbage_collector.h | 38 : objects(num_objects), bytes(num_bytes) {} in objects() 41 bytes += other.bytes; in Add() 47 int64_t bytes; member 67 return freed_.bytes; in GetFreedBytes() 70 return freed_los_.bytes; in GetFreedLargeObjectBytes()
|
D | garbage_collector.cc | 51 return (static_cast<uint64_t>(freed_.bytes) * 1000) / (NsToMs(GetDurationNs()) + 1); in GetEstimatedThroughput() 167 heap_->RecordFree(freed.objects, freed.bytes); in RecordFree() 171 heap_->RecordFree(freed.objects, freed.bytes); in RecordFreeLOS()
|
/art/runtime/base/ |
D | allocator.h | 77 static void RegisterAllocation(AllocatorTag tag, uint64_t bytes) { in RegisterAllocation() argument 78 total_bytes_used_[tag].FetchAndAddSequentiallyConsistent(bytes); in RegisterAllocation() 79 uint64_t new_bytes = bytes_used_[tag].FetchAndAddSequentiallyConsistent(bytes) + bytes; in RegisterAllocation() 82 static void RegisterFree(AllocatorTag tag, uint64_t bytes) { in RegisterFree() argument 83 bytes_used_[tag].FetchAndSubSequentiallyConsistent(bytes); in RegisterFree()
|
/art/test/003-omnibus-opcodes/src/ |
D | Array.java | 25 static void checkBytes(byte[] bytes) { in checkBytes() argument 26 Main.assertTrue(bytes[0] == 0); in checkBytes() 27 Main.assertTrue(bytes[1] == -1); in checkBytes() 28 Main.assertTrue(bytes[2] == -2); in checkBytes() 29 Main.assertTrue(bytes[3] == -3); in checkBytes() 30 Main.assertTrue(bytes[4] == -4); in checkBytes()
|
/art/runtime/gc/space/ |
D | bump_pointer_space.cc | 137 byte* BumpPointerSpace::AllocBlock(size_t bytes) { in AllocBlock() argument 138 bytes = RoundUp(bytes, kAlignment); in AllocBlock() 143 AllocNonvirtualWithoutAccounting(bytes + sizeof(BlockHeader))); in AllocBlock() 146 header->size_ = bytes; // Write out the block header. in AllocBlock() 250 bool BumpPointerSpace::AllocNewTlab(Thread* self, size_t bytes) { in AllocNewTlab() argument 253 byte* start = AllocBlock(bytes); in AllocNewTlab() 257 self->SetTlab(start, start + bytes); in AllocNewTlab()
|
D | bump_pointer_space.h | 136 bool AllocNewTlab(Thread* self, size_t bytes); 149 void RecordFree(int32_t objects, int32_t bytes) { in RecordFree() argument 151 bytes_allocated_.FetchAndSubSequentiallyConsistent(bytes); in RecordFree() 164 byte* AllocBlock(size_t bytes) EXCLUSIVE_LOCKS_REQUIRED(block_lock_);
|
/art/runtime/gc/allocator/ |
D | rosalloc-inl.h | 39 byte* bytes = reinterpret_cast<byte*>(m); in Alloc() local 41 DCHECK_EQ(bytes[i], 0); in Alloc()
|
D | rosalloc.h | 542 size_t UsableSize(size_t bytes) { in UsableSize() argument 543 if (UNLIKELY(bytes > kLargeSizeThreshold)) { in UsableSize() 544 return RoundUp(bytes, kPageSize); in UsableSize() 546 return RoundToBracketSize(bytes); in UsableSize() 563 void SetFootprintLimit(size_t bytes) LOCKS_EXCLUDED(lock_);
|
/art/runtime/ |
D | dex_file_verifier_test.cc | 169 static const DexFile* FixChecksumAndOpen(byte* bytes, size_t length, const char* location, in FixChecksumAndOpen() argument 172 CHECK(bytes != nullptr); in FixChecksumAndOpen() 175 FixUpChecksum(bytes); in FixChecksumAndOpen() 180 if (!file->WriteFully(bytes, length)) { in FixChecksumAndOpen()
|
D | thread-inl.h | 169 inline mirror::Object* Thread::AllocTlab(size_t bytes) { in AllocTlab() argument 170 DCHECK_GE(TlabSize(), bytes); in AllocTlab() 173 tlsPtr_.thread_local_pos += bytes; in AllocTlab()
|
D | debugger.cc | 3993 std::vector<uint8_t> bytes; in DdmSendThreadNotification() local 3994 JDWP::Append4BE(bytes, t->GetThreadId()); in DdmSendThreadNotification() 3995 JDWP::AppendUtf16BE(bytes, chars, char_count); in DdmSendThreadNotification() 3996 CHECK_EQ(bytes.size(), char_count*2 + sizeof(uint32_t)*2); in DdmSendThreadNotification() 3997 Dbg::DdmSendChunk(type, bytes); in DdmSendThreadNotification() 4048 void Dbg::DdmSendChunk(uint32_t type, const std::vector<uint8_t>& bytes) { in DdmSendChunk() argument 4049 DdmSendChunk(type, bytes.size(), &bytes[0]); in DdmSendChunk() 4123 std::vector<uint8_t> bytes; in DdmSendHeapInfo() local 4124 JDWP::Append4BE(bytes, heap_count); in DdmSendHeapInfo() 4125 JDWP::Append4BE(bytes, 1); // Heap id (bogus; we only have one heap). in DdmSendHeapInfo() [all …]
|
/art/test/093-serialization/src/ |
D | Main.java | 52 byte[] bytes = byteStream.toByteArray(); in createStream() 56 return bytes; in createStream()
|