Searched refs:bytes (Results 1 - 25 of 75) sorted by relevance

123

/art/runtime/gc/collector/
H A Dobject_byte_pair.h28 : objects(num_objects), bytes(num_bytes) {}
31 bytes += other.bytes;
35 // Freed bytes are signed since the GC can free negative bytes if it promotes objects to a space
37 int64_t bytes; member in struct:art::gc::collector::ObjectBytePair
H A Diteration.h49 return freed_.bytes;
52 return freed_los_.bytes;
/art/runtime/jdwp/
H A Djdwp_bits.h35 static inline void Append1BE(std::vector<uint8_t>& bytes, uint8_t value) { argument
36 bytes.push_back(value);
39 static inline void Append2BE(std::vector<uint8_t>& bytes, uint16_t value) { argument
40 bytes.push_back(static_cast<uint8_t>(value >> 8));
41 bytes.push_back(static_cast<uint8_t>(value));
44 static inline void Append4BE(std::vector<uint8_t>& bytes, uint32_t value) { argument
45 bytes.push_back(static_cast<uint8_t>(value >> 24));
46 bytes.push_back(static_cast<uint8_t>(value >> 16));
47 bytes.push_back(static_cast<uint8_t>(value >> 8));
48 bytes
51 Append8BE(std::vector<uint8_t>& bytes, uint64_t value) argument
62 AppendUtf16BE(std::vector<uint8_t>& bytes, const uint16_t* chars, size_t char_count) argument
70 AppendUtf16CompressedBE(std::vector<uint8_t>& bytes, const uint8_t* chars, size_t char_count) argument
[all...]
H A Djdwp_request.cc29 Request::Request(const uint8_t* bytes, uint32_t available) : p_(bytes) { argument
31 end_ = bytes + byte_count_;
49 CHECK(p_ == end_) << "read too few bytes: " << (end_ - p_);
51 CHECK(p_ == end_) << "read too many bytes: " << (p_ - end_);
/art/test/102-concurrent-gc/src/
H A DMain.java24 public byte[] bytes; field in class:Main.ByteContainer
37 l[index].bytes = new byte[bufferSize];
57 byte[] temp = l[a].bytes;
58 l[a].bytes = l[b].bytes;
59 l[b].bytes = temp;
/art/runtime/native/
H A Dorg_apache_harmony_dalvik_ddmc_DdmVmInternal.cc111 * (1b) bytes per entry
132 std::vector<uint8_t>& bytes = *reinterpret_cast<std::vector<uint8_t>*>(context); local
133 JDWP::Append4BE(bytes, t->GetThreadId());
134 JDWP::Append1BE(bytes, Dbg::ToJdwpThreadStatus(t->GetState()));
135 JDWP::Append4BE(bytes, t->GetTid());
136 JDWP::Append4BE(bytes, utime);
137 JDWP::Append4BE(bytes, stime);
138 JDWP::Append1BE(bytes, t->IsDaemon());
142 std::vector<uint8_t> bytes; local
151 JDWP::Append1BE(bytes, kThstHeaderLe
[all...]
H A Dlibcore_util_CharsetUtils.cc37 * We could avoid this by keeping the UTF-8 bytes on the native heap until we're done and only
115 ScopedByteArrayRO bytes(env, javaBytes);
116 if (bytes.get() == nullptr) {
124 const jbyte* src = &bytes[offset];
135 ScopedByteArrayRO bytes(env, javaBytes);
136 if (bytes.get() == nullptr) {
144 const jbyte* src = &bytes[offset];
152 * Translates the given characters to US-ASCII or ISO-8859-1 bytes, using the fact that
166 ScopedByteArrayRW bytes(env, javaBytes);
167 if (bytes
[all...]
/art/cmdline/
H A Dmemory_representation.h28 // An integral representation of bytes of memory.
34 static Memory<kDivisor> FromBytes(size_t bytes) { argument
35 assert(bytes % kDivisor == 0);
36 return Memory<kDivisor>(bytes);
/art/test/1901-get-bytecodes/
H A Dbytecodes.cc57 jbyte* bytes = env->GetByteArrayElements(out, /* is_copy */ nullptr); local
58 memcpy(bytes, bytecodes, bytecodes_size);
59 env->ReleaseByteArrayElements(out, bytes, 0);
/art/test/580-checker-string-fact-intrinsics/src-art/
H A DMain.java26 byte[] bytes = { 'f', 'o', 'o' };
27 String s = StringFactory.newStringFromBytes(bytes, 0, 0, 3);
/art/runtime/base/
H A Darena_allocator.h119 void RecordAlloc(size_t bytes ATTRIBUTE_UNUSED, ArenaAllocKind kind ATTRIBUTE_UNUSED) {}
135 void RecordAlloc(size_t bytes, ArenaAllocKind kind);
294 void* Alloc(size_t bytes, ArenaAllocKind kind = kArenaAllocMisc) ALWAYS_INLINE {
296 return AllocWithMemoryTool(bytes, kind);
298 bytes = RoundUp(bytes, kAlignment);
299 ArenaAllocatorStats::RecordAlloc(bytes, kind);
300 if (UNLIKELY(bytes > static_cast<size_t>(end_ - ptr_))) {
301 return AllocFromNewArena(bytes);
305 ptr_ += bytes;
[all...]
H A Darena_allocator.cc114 void ArenaAllocatorStatsImpl<kCount>::RecordAlloc(size_t bytes, ArenaAllocKind kind) { argument
115 alloc_stats_[kind] += bytes;
405 // Update how many bytes we have allocated into the arena so that the arena pool knows how
411 void* ArenaAllocator::AllocWithMemoryTool(size_t bytes, ArenaAllocKind kind) { argument
415 size_t rounded_bytes = RoundUp(bytes + kMemoryToolRedZoneBytes, 8);
424 MEMORY_TOOL_MAKE_DEFINED(ret, bytes);
426 DCHECK(std::all_of(ret, ret + bytes, [](uint8_t val) { return val == 0u; }));
430 void* ArenaAllocator::AllocWithMemoryToolAlign16(size_t bytes, ArenaAllocKind kind) { argument
434 size_t rounded_bytes = bytes + kMemoryToolRedZoneBytes;
435 DCHECK_ALIGNED(rounded_bytes, 8); // `bytes` i
460 AllocFromNewArena(size_t bytes) argument
484 AllocFromNewArenaWithMemoryTool(size_t bytes) argument
[all...]
H A Dscoped_arena_allocator.h95 void* Alloc(size_t bytes, ArenaAllocKind kind) ALWAYS_INLINE {
97 return AllocWithMemoryTool(bytes, kind);
100 size_t rounded_bytes = RoundUp(bytes + (kIsDebugBuild ? kAlignment : 0u), kAlignment);
105 CurrentStats()->RecordAlloc(bytes, kind);
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);
H A Dscoped_arena_allocator.cc82 // Update how many bytes we have allocated into the arena so that the arena pool knows how
92 void* ArenaStack::AllocWithMemoryTool(size_t bytes, ArenaAllocKind kind) { argument
96 size_t rounded_bytes = RoundUp(bytes + kMemoryToolRedZoneBytes, 8);
103 CurrentStats()->RecordAlloc(bytes, kind);
105 MEMORY_TOOL_MAKE_UNDEFINED(ptr, bytes);
/art/runtime/arch/x86_64/
H A Dmemcmp16_x86_64.S701 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/407-arrays/src/
H A DMain.java32 static void $opt$testReads(boolean[] bools, byte[] bytes, char[] chars, short[] shorts, argument
38 assertEquals(0, bytes[0]);
39 assertEquals(0, bytes[index]);
63 static void $opt$testWrites(boolean[] bools, byte[] bytes, char[] chars, short[] shorts, argument
71 bytes[0] = -4;
72 assertEquals(-4, bytes[0]);
73 bytes[index] = -8;
74 assertEquals(-8, bytes[index]);
/art/test/712-varhandle-invocations/src/
H A DVarHandleBadCoordinateTests.java240 byte[] bytes = new byte[16];
242 vh.get(bytes, -1);
247 vh.get(bytes, bytes.length);
252 vh.get(bytes, Integer.MAX_VALUE - 1);
257 vh.get(bytes, bytes.length - Integer.SIZE / 8 + 1);
261 vh.get(bytes, bytes.length - Integer.SIZE / 8);
282 byte[] bytes
[all...]
/art/runtime/gc/space/
H A Dregion_space-inl.h123 uint64_t bytes = 0; local
132 bytes += r->BytesAllocated();
136 bytes += r->BytesAllocated();
141 bytes += r->BytesAllocated();
146 bytes += r->BytesAllocated();
153 return bytes;
158 uint64_t bytes = 0; local
167 bytes += r->ObjectsAllocated();
171 bytes += r->ObjectsAllocated();
176 bytes
354 size_t bytes; local
[all...]
H A Dbump_pointer_space.cc140 uint8_t* BumpPointerSpace::AllocBlock(size_t bytes) { argument
141 bytes = RoundUp(bytes, kAlignment);
146 AllocNonvirtualWithoutAccounting(bytes + sizeof(BlockHeader)));
149 header->size_ = bytes; // Write out the block header.
203 bool BumpPointerSpace::AllocNewTlab(Thread* self, size_t bytes) { argument
206 uint8_t* start = AllocBlock(bytes);
210 self->SetTlab(start, start + bytes, start + bytes);
218 << max_contiguous_allocation << " bytes)";
[all...]
/art/libartbase/base/
H A Dallocator.h74 // Running count of number of bytes used for this kind of allocation. Increased by allocations,
78 // Largest value of bytes used seen.
81 // Total number of bytes allocated of this kind.
86 inline void RegisterAllocation(AllocatorTag tag, size_t bytes) { argument
87 g_total_bytes_used[tag].FetchAndAddSequentiallyConsistent(bytes);
88 size_t new_bytes = g_bytes_used[tag].FetchAndAddSequentiallyConsistent(bytes) + bytes;
94 inline void RegisterFree(AllocatorTag tag, size_t bytes) { argument
95 g_bytes_used[tag].FetchAndSubSequentiallyConsistent(bytes);
/art/runtime/arch/x86/
H A Dmemcmp16_x86.S851 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...]
H A Dfault_handler_x86.cc77 // Get the size of an instruction in bytes.
81 char buf[15]; // x86/x86-64 have a maximum instruction length of 15 bytes.
82 ssize_t bytes = SafeCopy(buf, pc, sizeof(buf)); local
84 if (bytes == 0) {
89 if (bytes == -1) {
91 bytes = 16;
99 if (pc - startpc > bytes) { \
273 if (pc - startpc > bytes) {
/art/runtime/
H A Dquicken_info.h63 static size_t NumberOfIndices(size_t bytes) { argument
64 return bytes / sizeof(uint16_t);
/art/test/003-omnibus-opcodes/src/
H A DArray.java25 static void checkBytes(byte[] bytes) { argument
26 Main.assertTrue(bytes[0] == 0);
27 Main.assertTrue(bytes[1] == -1);
28 Main.assertTrue(bytes[2] == -2);
29 Main.assertTrue(bytes[3] == -3);
30 Main.assertTrue(bytes[4] == -4);
/art/test/093-serialization/src/
H A DMain.java52 byte[] bytes = byteStream.toByteArray();
56 return bytes;

Completed in 1627 milliseconds

123