/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 …]
|
/art/runtime/native/ |
D | org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc | 126 std::vector<uint8_t>& bytes = *reinterpret_cast<std::vector<uint8_t>*>(context); in ThreadStatsGetterCallback() local 127 JDWP::Append4BE(bytes, t->GetThreadId()); in ThreadStatsGetterCallback() 128 JDWP::Append1BE(bytes, Dbg::ToJdwpThreadStatus(t->GetState())); in ThreadStatsGetterCallback() 129 JDWP::Append4BE(bytes, t->GetTid()); in ThreadStatsGetterCallback() 130 JDWP::Append4BE(bytes, utime); in ThreadStatsGetterCallback() 131 JDWP::Append4BE(bytes, stime); in ThreadStatsGetterCallback() 132 JDWP::Append1BE(bytes, t->IsDaemon()); in ThreadStatsGetterCallback() 136 std::vector<uint8_t> bytes; in DdmVmInternal_getThreadStats() local 145 JDWP::Append1BE(bytes, kThstHeaderLen); in DdmVmInternal_getThreadStats() 146 JDWP::Append1BE(bytes, kThstBytesPerEntry); in DdmVmInternal_getThreadStats() [all …]
|
D | libcore_util_CharsetUtils.cc | 116 ScopedByteArrayRO bytes(env, javaBytes); in CharsetUtils_asciiBytesToChars() local 117 if (bytes.get() == nullptr) { in CharsetUtils_asciiBytesToChars() 125 const jbyte* src = &bytes[offset]; in CharsetUtils_asciiBytesToChars() 136 ScopedByteArrayRO bytes(env, javaBytes); in CharsetUtils_isoLatin1BytesToChars() local 137 if (bytes.get() == nullptr) { in CharsetUtils_isoLatin1BytesToChars() 145 const jbyte* src = &bytes[offset]; in CharsetUtils_isoLatin1BytesToChars() 167 ScopedByteArrayRW bytes(env, javaBytes); in charsToBytes() local 168 if (bytes.get() == nullptr) { in charsToBytes() 172 jbyte* dst = &bytes[0]; in charsToBytes()
|
/art/test/004-NativeAllocations/src-art/ |
D | Main.java | 32 private int bytes; field in Main.NativeAllocation 34 NativeAllocation(int bytes, boolean testingDeadlock) throws Exception { in NativeAllocation() argument 35 this.bytes = bytes; in NativeAllocation() 36 register_native_allocation.invoke(runtime, bytes); in NativeAllocation() 48 nativeBytes += bytes; in NativeAllocation() 58 nativeBytes -= bytes; in finalize() 60 register_native_free.invoke(runtime, bytes); in finalize()
|
/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/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/runtime/base/ |
D | arena_allocator.h | 116 void RecordAlloc(size_t bytes ATTRIBUTE_UNUSED, ArenaAllocKind kind ATTRIBUTE_UNUSED) {} in RecordAlloc() 132 void RecordAlloc(size_t bytes, ArenaAllocKind kind); 291 void* Alloc(size_t bytes, ArenaAllocKind kind = kArenaAllocMisc) ALWAYS_INLINE { 293 return AllocWithMemoryTool(bytes, kind); 295 bytes = RoundUp(bytes, kAlignment); 296 ArenaAllocatorStats::RecordAlloc(bytes, kind); 297 if (UNLIKELY(bytes > static_cast<size_t>(end_ - ptr_))) { 298 return AllocFromNewArena(bytes); 302 ptr_ += bytes; 307 void* AllocAlign16(size_t bytes, ArenaAllocKind kind = kArenaAllocMisc) ALWAYS_INLINE { [all …]
|
D | arena_allocator.cc | 110 void ArenaAllocatorStatsImpl<kCount>::RecordAlloc(size_t bytes, ArenaAllocKind kind) { in RecordAlloc() argument 111 alloc_stats_[kind] += bytes; in RecordAlloc() 404 void* ArenaAllocator::AllocWithMemoryTool(size_t bytes, ArenaAllocKind kind) { in AllocWithMemoryTool() argument 408 size_t rounded_bytes = RoundUp(bytes + kMemoryToolRedZoneBytes, 8); in AllocWithMemoryTool() 417 MEMORY_TOOL_MAKE_DEFINED(ret, bytes); in AllocWithMemoryTool() 419 DCHECK(std::all_of(ret, ret + bytes, [](uint8_t val) { return val == 0u; })); in AllocWithMemoryTool() 423 void* ArenaAllocator::AllocWithMemoryToolAlign16(size_t bytes, ArenaAllocKind kind) { in AllocWithMemoryToolAlign16() argument 427 size_t rounded_bytes = bytes + kMemoryToolRedZoneBytes; in AllocWithMemoryToolAlign16() 441 MEMORY_TOOL_MAKE_DEFINED(ret, bytes); in AllocWithMemoryToolAlign16() 443 DCHECK(std::all_of(ret, ret + bytes, [](uint8_t val) { return val == 0u; })); in AllocWithMemoryToolAlign16() [all …]
|
D | scoped_arena_allocator.h | 89 void* Alloc(size_t bytes, ArenaAllocKind kind) ALWAYS_INLINE { in Alloc() argument 91 return AllocWithMemoryTool(bytes, kind); in Alloc() 94 size_t rounded_bytes = RoundUp(bytes + (kIsDebugBuild ? kAlignment : 0u), kAlignment); in Alloc() 99 CurrentStats()->RecordAlloc(bytes, kind); in Alloc() 111 void* AllocWithMemoryTool(size_t bytes, ArenaAllocKind kind); 150 void* Alloc(size_t bytes, ArenaAllocKind kind = kArenaAllocMisc) ALWAYS_INLINE { 152 return arena_stack_->Alloc(bytes, kind);
|
D | allocator.h | 86 inline void RegisterAllocation(AllocatorTag tag, size_t bytes) { in RegisterAllocation() argument 87 g_total_bytes_used[tag].FetchAndAddSequentiallyConsistent(bytes); in RegisterAllocation() 88 size_t new_bytes = g_bytes_used[tag].FetchAndAddSequentiallyConsistent(bytes) + bytes; in RegisterAllocation() 94 inline void RegisterFree(AllocatorTag tag, size_t bytes) { in RegisterFree() argument 95 g_bytes_used[tag].FetchAndSubSequentiallyConsistent(bytes); in RegisterFree()
|
D | scoped_arena_allocator.cc | 93 void* ArenaStack::AllocWithMemoryTool(size_t bytes, ArenaAllocKind kind) { in AllocWithMemoryTool() argument 97 size_t rounded_bytes = RoundUp(bytes + kMemoryToolRedZoneBytes, 8); in AllocWithMemoryTool() 104 CurrentStats()->RecordAlloc(bytes, kind); in AllocWithMemoryTool() 106 MEMORY_TOOL_MAKE_UNDEFINED(ptr, bytes); in AllocWithMemoryTool()
|
/art/runtime/gc/collector/ |
D | object_byte_pair.h | 28 : objects(num_objects), bytes(num_bytes) {} in objects() 31 bytes += other.bytes; in Add() 37 int64_t bytes; member
|
D | iteration.h | 48 return freed_.bytes; in GetFreedBytes() 51 return freed_los_.bytes; in GetFreedLargeObjectBytes()
|
/art/runtime/gc/space/ |
D | region_space-inl.h | 119 uint64_t bytes = 0; in GetBytesAllocatedInternal() local 128 bytes += r->BytesAllocated(); in GetBytesAllocatedInternal() 132 bytes += r->BytesAllocated(); in GetBytesAllocatedInternal() 137 bytes += r->BytesAllocated(); in GetBytesAllocatedInternal() 142 bytes += r->BytesAllocated(); in GetBytesAllocatedInternal() 149 return bytes; in GetBytesAllocatedInternal() 154 uint64_t bytes = 0; in GetObjectsAllocatedInternal() local 163 bytes += r->ObjectsAllocated(); in GetObjectsAllocatedInternal() 167 bytes += r->ObjectsAllocated(); in GetObjectsAllocatedInternal() 172 bytes += r->ObjectsAllocated(); in GetObjectsAllocatedInternal() [all …]
|
D | bump_pointer_space.cc | 140 uint8_t* BumpPointerSpace::AllocBlock(size_t bytes) { in AllocBlock() argument 141 bytes = RoundUp(bytes, kAlignment); in AllocBlock() 146 AllocNonvirtualWithoutAccounting(bytes + sizeof(BlockHeader))); in AllocBlock() 149 header->size_ = bytes; // Write out the block header. in AllocBlock() 203 bool BumpPointerSpace::AllocNewTlab(Thread* self, size_t bytes) { in AllocNewTlab() argument 206 uint8_t* start = AllocBlock(bytes); in AllocNewTlab() 210 self->SetTlab(start, start + bytes, start + bytes); in AllocNewTlab()
|
D | bump_pointer_space.h | 142 bool AllocNewTlab(Thread* self, size_t bytes) REQUIRES(!block_lock_); 157 void RecordFree(int32_t objects, int32_t bytes) { in RecordFree() argument 159 bytes_allocated_.FetchAndSubSequentiallyConsistent(bytes); in RecordFree() 172 uint8_t* AllocBlock(size_t bytes) REQUIRES(block_lock_);
|
/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 38 assertEquals(0, bytes[0]); in $opt$testReads() 39 assertEquals(0, bytes[index]); in $opt$testReads() 63 static void $opt$testWrites(boolean[] bools, byte[] bytes, char[] chars, short[] shorts, in $opt$testWrites() argument 71 bytes[0] = -4; in $opt$testWrites() 72 assertEquals(-4, bytes[0]); in $opt$testWrites() 73 bytes[index] = -8; in $opt$testWrites() 74 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 …]
|
D | fault_handler_x86.cc | 83 ssize_t bytes = SafeCopy(buf, pc, sizeof(buf)); in GetInstructionSize() local 85 if (bytes == 0) { in GetInstructionSize() 90 if (bytes == -1) { in GetInstructionSize() 92 bytes = 16; in GetInstructionSize() 100 if (pc - startpc > bytes) { \ in GetInstructionSize() 274 if (pc - startpc > bytes) { in GetInstructionSize()
|
/art/test/1901-get-bytecodes/ |
D | bytecodes.cc | 56 jbyte* bytes = env->GetByteArrayElements(out, /* is_copy */ nullptr); in Java_art_Test1901_getBytecodes() local 57 memcpy(bytes, bytecodes, bytecodes_size); in Java_art_Test1901_getBytecodes() 58 env->ReleaseByteArrayElements(out, bytes, 0); in Java_art_Test1901_getBytecodes()
|
/art/cmdline/ |
D | memory_representation.h | 34 static Memory<kDivisor> FromBytes(size_t bytes) { in FromBytes() 35 assert(bytes % kDivisor == 0); in FromBytes() 36 return Memory<kDivisor>(bytes); in FromBytes()
|
/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/test/580-checker-string-fact-intrinsics/src-art/ |
D | Main.java | 26 byte[] bytes = { 'f', 'o', 'o' }; in testNewStringFromBytes() 27 String s = StringFactory.newStringFromBytes(bytes, 0, 0, 3); in testNewStringFromBytes()
|
/art/runtime/ |
D | quicken_info.h | 43 static size_t NumberOfIndices(size_t bytes) { in NumberOfIndices() argument 44 return bytes / sizeof(uint16_t); in NumberOfIndices()
|
/art/tools/ |
D | stream-trace-converter.py | 39 bytes = [ (val & 0xFF), ((val >> 8) & 0xFF) ] 40 asbytearray = bytearray(bytes) 59 bytes = [ (val & 0xFF), ((val >> 8) & 0xFF), ((val >> 16) & 0xFF), ((val >> 24) & 0xFF) ] 60 asbytearray = bytearray(bytes)
|