/art/test/580-crc32/src/ |
D | Main.java | 157 private static long CRC32ByteArray(byte[] bytes, int off, int len) { in CRC32ByteArray() argument 159 crc32.update(bytes, off, len); in CRC32ByteArray() 165 private static long CRC32ByteArray(byte[] bytes) { in CRC32ByteArray() argument 167 crc32.update(bytes); in CRC32ByteArray() 171 private static long CRC32ByteAndByteArray(int value, byte[] bytes) { in CRC32ByteAndByteArray() argument 174 crc32.update(bytes); in CRC32ByteAndByteArray() 178 private static long CRC32ByteArrayAndByte(byte[] bytes, int value) { in CRC32ByteArrayAndByte() argument 180 crc32.update(bytes); in CRC32ByteArrayAndByte() 185 private static boolean CRC32ByteArrayThrowsAIOOBE(byte[] bytes, int off, int len) { in CRC32ByteArrayThrowsAIOOBE() argument 188 crc32.update(bytes, off, len); in CRC32ByteArrayThrowsAIOOBE() [all …]
|
/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 | 132 std::vector<uint8_t>& bytes = *reinterpret_cast<std::vector<uint8_t>*>(context); in ThreadStatsGetterCallback() local 133 JDWP::Append4BE(bytes, t->GetThreadId()); in ThreadStatsGetterCallback() 134 JDWP::Append1BE(bytes, Dbg::ToJdwpThreadStatus(t->GetState())); in ThreadStatsGetterCallback() 135 JDWP::Append4BE(bytes, t->GetTid()); in ThreadStatsGetterCallback() 136 JDWP::Append4BE(bytes, utime); in ThreadStatsGetterCallback() 137 JDWP::Append4BE(bytes, stime); in ThreadStatsGetterCallback() 138 JDWP::Append1BE(bytes, t->IsDaemon()); in ThreadStatsGetterCallback() 142 std::vector<uint8_t> bytes; in DdmVmInternal_getThreadStats() local 151 JDWP::Append1BE(bytes, kThstHeaderLen); in DdmVmInternal_getThreadStats() 152 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/libartbase/base/ |
D | arena_allocator.cc | 113 void ArenaAllocatorStatsImpl<kCount>::RecordAlloc(size_t bytes, ArenaAllocKind kind) { in RecordAlloc() argument 114 alloc_stats_[kind] += bytes; in RecordAlloc() 222 void* ArenaAllocator::AllocWithMemoryTool(size_t bytes, ArenaAllocKind kind) { in AllocWithMemoryTool() argument 226 size_t rounded_bytes = RoundUp(bytes + kMemoryToolRedZoneBytes, 8); in AllocWithMemoryTool() 235 MEMORY_TOOL_MAKE_DEFINED(ret, bytes); in AllocWithMemoryTool() 237 DCHECK(std::all_of(ret, ret + bytes, [](uint8_t val) { return val == 0u; })); in AllocWithMemoryTool() 241 void* ArenaAllocator::AllocWithMemoryToolAlign16(size_t bytes, ArenaAllocKind kind) { in AllocWithMemoryToolAlign16() argument 245 size_t rounded_bytes = bytes + kMemoryToolRedZoneBytes; in AllocWithMemoryToolAlign16() 259 MEMORY_TOOL_MAKE_DEFINED(ret, bytes); in AllocWithMemoryToolAlign16() 261 DCHECK(std::all_of(ret, ret + bytes, [](uint8_t val) { return val == 0u; })); in AllocWithMemoryToolAlign16() [all …]
|
D | arena_allocator.h | 121 void RecordAlloc(size_t bytes ATTRIBUTE_UNUSED, ArenaAllocKind kind ATTRIBUTE_UNUSED) {} in RecordAlloc() 137 void RecordAlloc(size_t bytes, ArenaAllocKind kind); 267 void* Alloc(size_t bytes, ArenaAllocKind kind = kArenaAllocMisc) ALWAYS_INLINE { 269 return AllocWithMemoryTool(bytes, kind); 271 bytes = RoundUp(bytes, kAlignment); 272 ArenaAllocatorStats::RecordAlloc(bytes, kind); 273 if (UNLIKELY(bytes > static_cast<size_t>(end_ - ptr_))) { 274 return AllocFromNewArena(bytes); 278 ptr_ += bytes; 283 void* AllocAlign16(size_t bytes, ArenaAllocKind kind = kArenaAllocMisc) ALWAYS_INLINE { [all …]
|
D | scoped_arena_allocator.h | 95 void* Alloc(size_t bytes, ArenaAllocKind kind) ALWAYS_INLINE { in Alloc() argument 97 return AllocWithMemoryTool(bytes, kind); in Alloc() 100 size_t rounded_bytes = RoundUp(bytes + (kIsDebugBuild ? kAlignment : 0u), kAlignment); in Alloc() 105 CurrentStats()->RecordAlloc(bytes, kind); in Alloc() 117 void* AllocWithMemoryTool(size_t bytes, ArenaAllocKind kind); 151 void* Alloc(size_t bytes, ArenaAllocKind kind = kArenaAllocMisc) ALWAYS_INLINE { 153 return arena_stack_->Alloc(bytes, kind);
|
D | allocator.h | 88 inline void RegisterAllocation(AllocatorTag tag, size_t bytes) { in RegisterAllocation() argument 89 g_total_bytes_used[tag].fetch_add(bytes, std::memory_order_relaxed); in RegisterAllocation() 90 size_t new_bytes = g_bytes_used[tag].fetch_add(bytes, std::memory_order_relaxed) + bytes; in RegisterAllocation() 98 inline void RegisterFree(AllocatorTag tag, size_t bytes) { in RegisterFree() argument 99 g_bytes_used[tag].fetch_sub(bytes, std::memory_order_relaxed); in RegisterFree()
|
D | stats.h | 34 void AddBytes(double bytes, size_t count = 1) { Add(bytes, count); }
|
D | scoped_arena_allocator.cc | 92 void* ArenaStack::AllocWithMemoryTool(size_t bytes, ArenaAllocKind kind) { in AllocWithMemoryTool() argument 96 size_t rounded_bytes = RoundUp(bytes + kMemoryToolRedZoneBytes, 8); in AllocWithMemoryTool() 103 CurrentStats()->RecordAlloc(bytes, kind); in AllocWithMemoryTool() 105 MEMORY_TOOL_MAKE_UNDEFINED(ptr, bytes); in AllocWithMemoryTool()
|
/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/test/712-varhandle-invocations/src/ |
D | VarHandleBadCoordinateTests.java | 240 byte[] bytes = new byte[16]; in doTest() 242 vh.get(bytes, -1); in doTest() 247 vh.get(bytes, bytes.length); in doTest() 252 vh.get(bytes, Integer.MAX_VALUE - 1); in doTest() 257 vh.get(bytes, bytes.length - Integer.SIZE / 8 + 1); in doTest() 261 vh.get(bytes, bytes.length - Integer.SIZE / 8); in doTest() 282 byte[] bytes = new byte[33]; in doTest() 284 int alignedIndex = VarHandleUnitTestHelpers.alignedOffset_int(bytes, 0); in doTest() 288 vh.set(bytes, i, 380); in doTest() 289 vh.get(bytes, i); in doTest() [all …]
|
/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 | 49 return freed_.bytes; in GetFreedBytes() 52 return freed_los_.bytes; in GetFreedLargeObjectBytes()
|
/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 | 57 jbyte* bytes = env->GetByteArrayElements(out, /* is_copy */ nullptr); in Java_art_Test1901_getBytecodes() local 58 memcpy(bytes, bytecodes, bytecodes_size); in Java_art_Test1901_getBytecodes() 59 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/runtime/gc/space/ |
D | region_space-inl.h | 128 uint64_t bytes = 0; in GetBytesAllocatedInternal() local 137 bytes += r->BytesAllocated(); in GetBytesAllocatedInternal() 141 bytes += r->BytesAllocated(); in GetBytesAllocatedInternal() 146 bytes += r->BytesAllocated(); in GetBytesAllocatedInternal() 151 bytes += r->BytesAllocated(); in GetBytesAllocatedInternal() 158 return bytes; in GetBytesAllocatedInternal() 163 uint64_t bytes = 0; in GetObjectsAllocatedInternal() local 172 bytes += r->ObjectsAllocated(); in GetObjectsAllocatedInternal() 176 bytes += r->ObjectsAllocated(); in GetObjectsAllocatedInternal() 181 bytes += r->ObjectsAllocated(); in GetObjectsAllocatedInternal() [all …]
|
D | bump_pointer_space.cc | 149 uint8_t* BumpPointerSpace::AllocBlock(size_t bytes) { in AllocBlock() argument 150 bytes = RoundUp(bytes, kAlignment); in AllocBlock() 155 AllocNonvirtualWithoutAccounting(bytes + sizeof(BlockHeader))); in AllocBlock() 158 header->size_ = bytes; // Write out the block header. in AllocBlock() 212 bool BumpPointerSpace::AllocNewTlab(Thread* self, size_t bytes) { in AllocNewTlab() argument 215 uint8_t* start = AllocBlock(bytes); in AllocNewTlab() 219 self->SetTlab(start, start + bytes, start + bytes); in AllocNewTlab()
|
/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 | 23 byte[] bytes = { 'f', 'o', 'o' }; in testNewStringFromBytes() 24 String s = StringFactory.newStringFromBytes(bytes, 0, 0, 3); in testNewStringFromBytes()
|
/art/runtime/gc/accounting/ |
D | space_bitmap.h | 189 void SetHeapSize(size_t bytes) { in SetHeapSize() argument 191 heap_limit_ = heap_begin_ + bytes; in SetHeapSize() 192 bitmap_size_ = OffsetToIndex(bytes) * sizeof(intptr_t); in SetHeapSize() 193 CHECK_EQ(HeapSize(), bytes); in SetHeapSize()
|