/art/runtime/ |
H A D | thread-inl.h | 203 inline mirror::Object* Thread::AllocTlab(size_t bytes) { argument 204 DCHECK_GE(TlabSize(), bytes); local 207 tlsPtr_.thread_local_pos += bytes;
|
H A D | debugger.cc | 4324 std::vector<uint8_t> bytes; local 4325 JDWP::Append4BE(bytes, t->GetThreadId()); 4326 JDWP::AppendUtf16BE(bytes, chars, char_count); 4327 CHECK_EQ(bytes.size(), char_count*2 + sizeof(uint32_t)*2); 4328 Dbg::DdmSendChunk(type, bytes); 4379 void Dbg::DdmSendChunk(uint32_t type, const std::vector<uint8_t>& bytes) { argument 4380 DdmSendChunk(type, bytes.size(), &bytes[0]); 4451 * [u4]: max heap size in bytes (-Xmx) 4452 * [u4]: current heap size in bytes 4458 std::vector<uint8_t> bytes; local 5086 std::vector<uint8_t> bytes; local [all...] |
H A D | jni_internal_test.cc | 1480 char bytes[4] = { 'x', 'x', 'x', 'x' }; local 1481 env_->GetStringUTFRegion(s, 1, 2, &bytes[1]); 1482 EXPECT_EQ('x', bytes[0]); 1483 EXPECT_EQ('e', bytes[1]); 1484 EXPECT_EQ('l', bytes[2]); 1485 EXPECT_EQ('x', bytes[3]); 2041 char bytes[1024]; local 2042 jobject buffer = env_->NewDirectByteBuffer(bytes, sizeof(bytes)); 2045 ASSERT_EQ(env_->GetDirectBufferAddress(buffer), bytes); [all...] |
H A D | oat.cc | 174 const uint8_t* bytes = reinterpret_cast<const uint8_t*>(data); local 175 adler32_checksum_ = adler32(adler32_checksum_, bytes, length);
|
H A D | jni_internal.cc | 1761 char* bytes = new char[byte_count + 1]; local 1762 CHECK(bytes != nullptr); // bionic aborts anyway. 1764 ConvertUtf16ToModifiedUtf8(bytes, chars, s->GetLength()); 1765 bytes[byte_count] = '\0'; 1766 return bytes; 2414 size_t bytes = array->GetLength() * component_size; local 2428 memcpy(array_data, elements, bytes); 2429 } else if (kWarnJniAbort && memcmp(array_data, elements, bytes) != 0) {
|
H A D | check_jni.cc | 1075 // Verifies that "bytes" points to valid Modified UTF-8 data. 1076 bool CheckUtfString(const char* bytes, bool nullable) { argument 1077 if (bytes == nullptr) { 1086 uint8_t utf8 = CheckUtfBytes(bytes, &errorKind); 1089 " string: '%s'", errorKind, utf8, bytes); 1095 // Checks whether |bytes| is valid modified UTF-8. We also accept 4 byte UTF 1097 static uint8_t CheckUtfBytes(const char* bytes, const char** errorKind) { argument 1098 while (*bytes != '\0') { 1099 uint8_t utf8 = *(bytes++); 1110 // Bit pattern 0xxx. No need for any extra bytes [all...] |
H A D | trace.cc | 616 static uint64_t ReadBytes(uint8_t* buf, size_t bytes) { argument 618 for (size_t i = 0; i < bytes; ++i) {
|
H A D | debugger.h | 667 static void DdmSendChunk(uint32_t type, const std::vector<uint8_t>& bytes)
|
H A D | thread.h | 629 // The interpreter needs the extra overflow bytes that stack_end does 870 mirror::Object* AllocTlab(size_t bytes);
|
/art/runtime/arch/mips64/ |
H A D | quick_entrypoints_mips64.S | 45 * callee-save: padding + $f24-$f31 + $s0-$s7 + $gp + $ra + $s8 = 19 total + 1x8 bytes padding 103 * callee-save: padding + $s2-$s7 + $gp + $ra + $s8 = 9 total + 1x8 bytes padding 244 # 1x8 bytes padding + Method* 559 # t2 = number of argument bytes remain 601 3: # found long (8 bytes) 619 * a2 = size of argument array in bytes 647 dsll $t3, $t3, 4 # shift the frame size left 4 to align to 16 bytes 652 daddiu $t2, $a2, -4 # t2 = number of argument bytes remain (skip this ptr) 662 ble $t2, $zero, call_fn # t2 = number of argument bytes remain 668 bgt $t2, $zero, 1b # t2 = number of argument bytes remai [all...] |
/art/runtime/gc/allocator/ |
H A D | rosalloc-inl.h | 47 uint8_t* bytes = reinterpret_cast<uint8_t*>(m); local 49 DCHECK_EQ(bytes[i], 0);
|
H A D | rosalloc.h | 276 // The number of smaller size brackets that are 16 bytes apart. 278 // The sizes (the slot sizes, in bytes) of the size brackets. 284 // The header sizes in bytes of the runs for each size bracket. 436 // The footprint in bytes of the currently allocated portion of the 516 // Returns how many bytes were freed. 586 // Returns the maximum bytes that could be allocated for the given 594 size_t UsableSize(size_t bytes) { 595 if (UNLIKELY(bytes > kLargeSizeThreshold)) { 596 return RoundUp(bytes, kPageSize); 598 return RoundToBracketSize(bytes); [all...] |
/art/runtime/native/ |
H A D | dalvik_system_VMRuntime.cc | 206 static void VMRuntime_registerNativeAllocation(JNIEnv* env, jobject, jint bytes) { argument 207 if (UNLIKELY(bytes < 0)) { 209 ThrowRuntimeException("allocation size negative %d", bytes); 212 Runtime::Current()->GetHeap()->RegisterNativeAllocation(env, static_cast<size_t>(bytes)); 215 static void VMRuntime_registerNativeFree(JNIEnv* env, jobject, jint bytes) { argument 216 if (UNLIKELY(bytes < 0)) { 218 ThrowRuntimeException("allocation size negative %d", bytes); 221 Runtime::Current()->GetHeap()->RegisterNativeFree(env, static_cast<size_t>(bytes));
|
/art/runtime/gc/space/ |
H A D | space_test.h | 65 mirror::Object* Alloc(space::MallocSpace* alloc_space, Thread* self, size_t bytes, 71 mirror::Object* obj = alloc_space->Alloc(self, bytes, bytes_allocated, usable_size, 74 InstallClass(obj, byte_array_class.Get(), bytes); 79 mirror::Object* AllocWithGrowth(space::MallocSpace* alloc_space, Thread* self, size_t bytes, 85 mirror::Object* obj = alloc_space->AllocWithGrowth(self, bytes, bytes_allocated, usable_size, 88 InstallClass(obj, byte_array_class.Get(), bytes);
|
H A D | region_space.h | 409 size_t bytes = static_cast<size_t>(top_ - begin_); local 410 DCHECK_LE(bytes, kRegionSize); 411 return bytes; 471 size_t live_bytes_; // The live bytes. Used to compute the live percent.
|
H A D | large_object_space.cc | 259 // Returns the allocation size in bytes. 304 // Returns how many free bytes there is before the block. 309 void SetPrevFreeBytes(size_t bytes) { argument 310 DCHECK_ALIGNED(bytes, FreeListSpace::kAlignment); 311 prev_free_ = bytes / FreeListSpace::kAlignment; 545 << " of length " << size << " bytes\n"; 548 << " of length " << size << " bytes\n"; 554 << " of length " << free_end_ << " bytes\n"; 590 context->freed.bytes += space->FreeList(self, num_ptrs, ptrs);
|
H A D | malloc_space.cc | 248 context->freed.bytes += space->FreeList(self, num_ptrs, ptrs);
|
/art/runtime/gc/ |
H A D | heap.h | 234 void RegisterNativeAllocation(JNIEnv* env, size_t bytes); 235 void RegisterNativeFree(JNIEnv* env, size_t bytes); 326 void RegisterGCAllocation(size_t bytes); 327 void RegisterGCDeAllocation(size_t bytes); 340 // For the alloc space, sets the maximum number of bytes that the heap is allowed to allocate 394 // Freed bytes can be negative in cases where we copy objects from a compacted space to a 398 // Record the bytes freed by thread-local buffer revoke. 428 // Returns the number of bytes currently allocated. 439 // Returns the total number of bytes allocated since the heap was created. 447 // Returns the total number of bytes free [all...] |
H A D | heap.cc | 84 // Minimum amount of remaining bytes before a concurrent GC is triggered. 96 // Default mark stack size in bytes. 975 os << "Total bytes allocated " << PrettySize(GetBytesAllocatedEver()) << "\n"; 976 os << "Total bytes freed " << PrettySize(GetBytesFreedEver()) << "\n"; 1142 << " free bytes and " << PrettySize(GetFreeMemoryUntilOOME()) << " until OOM"; 1455 // Use signed comparison since freed bytes can be negative when background compaction foreground 1474 // the ahead-of-time, bulk counting of bytes allocated in rosalloc thread-local buffers. 2262 VLOG(heap) << "Create zygote space with size=" << non_moving_space_->Size() << " bytes"; 3298 // We also check that the bytes allocated aren't over the footprint limit in order to prevent a 3323 // how many bytes wer 3589 RegisterNativeAllocation(JNIEnv* env, size_t bytes) argument 3633 RegisterNativeFree(JNIEnv* env, size_t bytes) argument [all...] |
/art/runtime/arch/arm/ |
H A D | quick_entrypoints_arm.S | 31 push {r4-r11, lr} @ 9 words (36 bytes) of callee saves. 42 vpush {s16-s31} @ 16 words (64 bytes) of floats. 363 * r2 = size of argument array in bytes 404 sub r4, sp, r4 @ reserve & align *stack* to 16 bytes: native calling 410 bl memcpy @ memcpy (dest, src, bytes)
|
/art/oatdump/ |
H A D | oatdump.cc | 705 os << StringPrintf("Dex file exported at %s (%zd bytes)\n", out_dex_path.c_str(), fsize); 765 // When this was picked, the largest arm method was 55,256 bytes and arm64 was 50,412 bytes. 1944 SizeAndCount(size_t bytes_in, size_t count_in) : bytes(bytes_in), count(count_in) {} 1945 size_t bytes; member in struct:art::ImageDumper::Stats::SizeAndCount 1954 it->second.bytes += object_bytes_in; 2086 indent_os << StringPrintf("header_bytes = %8zd (%2.0f%% of art file bytes)\n" 2087 "object_bytes = %8zd (%2.0f%% of art file bytes)\n" 2088 "art_field_bytes = %8zd (%2.0f%% of art file bytes)\n" 2089 "art_method_bytes = %8zd (%2.0f%% of art file bytes)\ [all...] |
/art/runtime/arch/mips/ |
H A D | quick_entrypoints_mips.S | 36 * Allocates ARG_SLOT_SIZE bytes at the bottom of the stack for arg slots. 37 * Reserves FRAME_SIZE_SAVE_ALL_CALLEE_SAVE + ARG_SLOT_SIZE bytes on the stack 96 * Allocates ARG_SLOT_SIZE bytes at the bottom of the stack for arg slots. 97 * Reserves FRAME_SIZE_REFS_ONLY_CALLEE_SAVE + ARG_SLOT_SIZE bytes on the stack 215 * Allocates ARG_SLOT_SIZE bytes at the bottom of the stack for arg slots. 216 * Reserves FRAME_SIZE_REFS_AND_ARGS_CALLEE_SAVE + ARG_SLOT_SIZE bytes on the stack 236 * Allocates ARG_SLOT_SIZE bytes at the bottom of the stack for arg slots. 237 * Reserves FRAME_SIZE_REFS_AND_ARGS_CALLEE_SAVE + ARG_SLOT_SIZE bytes on the stack 496 * a2 = size of argument array in bytes 518 subu $t0, $sp, $t0 # reserve & align *stack* to 16 bytes [all...] |
/art/runtime/gc/collector/ |
H A D | mark_sweep.cc | 837 // Calculate how many bytes of heap we will scan, 1166 freed.bytes += alloc_space->FreeList(self, chunk_free_pos, chunk_free_buffer); 1178 freed.bytes += alloc_space->FreeList(self, chunk_free_pos, chunk_free_buffer); 1201 freed_los.bytes += large_object_space->Free(self, obj);
|
/art/runtime/jdwp/ |
H A D | jdwp.h | 54 * Its OK to change MethodId and FieldId sizes as long as the size is <= 8 bytes. 55 * Note that ArtFields are 64 bit pointers on 64 bit targets. So this one must remain 8 bytes. 424 Request(const uint8_t* bytes, uint32_t available); 476 // Returns the number of bytes remaining.
|
/art/compiler/utils/arm/ |
H A D | assembler_arm.cc | 366 void ArmAssembler::Pad(uint32_t bytes) { 368 for (uint32_t i = 0; i < bytes; ++i) {
|