/art/tools/jvmti-agents/field-null-percent/ |
D | fieldnull.cc | 186 unsigned char* ptr = nullptr; in AgentStart() local 187 CHECK_JVMTI(jvmti->Allocate(strlen(options) + 1, &ptr)); in AgentStart() 188 strcpy(reinterpret_cast<char*>(ptr), options); in AgentStart() 189 CHECK_JVMTI(jvmti->SetEnvironmentLocalStorage(ptr)); in AgentStart()
|
/art/openjdkjvmti/ |
D | art_jvmti.h | 147 void operator()(T* ptr) const { in operator() 149 jvmtiError ret = env_->Deallocate(reinterpret_cast<unsigned char*>(ptr)); in operator() 168 void operator()(U* ptr) const { in operator() 170 jvmtiError ret = env_->Deallocate(reinterpret_cast<unsigned char*>(ptr)); in operator()
|
/art/runtime/arch/x86/ |
D | fault_handler_x86.cc | 401 uint8_t* ptr = pc - sizeof(checkinst1); in Action() local 403 while (ptr > limit) { in Action() 404 if (memcmp(ptr, checkinst1, sizeof(checkinst1)) == 0) { in Action() 408 ptr -= 1; in Action()
|
/art/runtime/gc/space/ |
D | rosalloc_space.cc | 260 size_t RosAllocSpace::Free(Thread* self, mirror::Object* ptr) { in Free() argument 262 CHECK(ptr != nullptr); in Free() 263 CHECK(Contains(ptr)) << "Free (" << ptr << ") not in bounds of heap " << *this; in Free() 267 RegisterRecentFree(ptr); in Free() 269 return rosalloc_->Free(self, ptr); in Free()
|
D | memory_tool_malloc_space-inl.h | 224 kUseObjSizeForUsable>::Free(Thread* self, mirror::Object* ptr) { in Free() argument 225 void* obj_after_rdz = reinterpret_cast<void*>(ptr); in Free() 230 size_t allocation_size = AllocationSize(ptr, &usable_size); in Free()
|
D | malloc_space.h | 57 size_t Free(Thread* self, mirror::Object* ptr) override 169 virtual void RegisterRecentFree(mirror::Object* ptr)
|
D | malloc_space.cc | 136 void MallocSpace::RegisterRecentFree(mirror::Object* ptr) { in RegisterRecentFree() argument 138 recent_freed_objects_[recent_free_pos_] = std::make_pair(ptr, ptr->GetClass<kVerifyNone>()); in RegisterRecentFree()
|
D | large_object_space_test.cc | 134 mirror::Object* ptr = los_->Alloc(self, size_, &alloc_size, nullptr, in Run() local 139 los_->Free(self, ptr); in Run()
|
D | zygote_space.h | 56 size_t Free(Thread* self, mirror::Object* ptr) override;
|
/art/runtime/ |
D | common_runtime_test.h | 49 static inline ObjPtr<MirrorType> MakeObjPtr(MirrorType* ptr) { in MakeObjPtr() argument 50 return ptr; in MakeObjPtr() 54 static inline ObjPtr<MirrorType> MakeObjPtr(ObjPtr<MirrorType> ptr) { in MakeObjPtr() argument 55 return ptr; in MakeObjPtr()
|
D | intern_table.h | 204 size_t WriteToMemory(uint8_t* ptr) REQUIRES_SHARED(Locks::mutator_lock_) 264 size_t AddTableFromMemory(const uint8_t* ptr, const Visitor& visitor, bool is_boot_image) 268 size_t WriteToMemory(uint8_t* ptr) 296 size_t AddTableFromMemory(const uint8_t* ptr, const Visitor& visitor, bool is_boot_image)
|
/art/libartbase/base/unix_file/ |
D | fd_file.cc | 422 char* ptr = static_cast<char*>(buffer); in ReadFullyGeneric() local 424 ssize_t bytes_read = TEMP_FAILURE_RETRY(read_func(fd, ptr, byte_count, offset)); in ReadFullyGeneric() 431 ptr += bytes_read; // Move the buffer forward. in ReadFullyGeneric() 450 const char* ptr = static_cast<const char*>(buffer); in WriteFullyGeneric() local 453 ? TEMP_FAILURE_RETRY(pwrite(fd_, ptr, byte_count, offset)) in WriteFullyGeneric() 454 : TEMP_FAILURE_RETRY(write(fd_, ptr, byte_count)); in WriteFullyGeneric() 459 ptr += bytes_written; // Move the buffer forward. in WriteFullyGeneric()
|
/art/libartbase/base/ |
D | time_utils.cc | 119 char* ptr = fraction_buffer; in FormatDuration() local 124 *ptr++ = '0'; in FormatDuration() 127 snprintf(ptr, avail_digits, "%" PRIu64, fractional_part); in FormatDuration()
|
D | stride_iterator.h | 37 StrideIterator(T* ptr, size_t stride) in StrideIterator() argument 38 : ptr_(reinterpret_cast<uintptr_t>(ptr)), in StrideIterator()
|
/art/libdexfile/dex/ |
D | type_lookup_table.cc | 170 const uint8_t* ptr = dex_data_begin_ + entry.GetStringOffset(); in GetStringData() local 172 DecodeUnsignedLeb128(&ptr); in GetStringData() 173 return reinterpret_cast<const char*>(ptr); in GetStringData()
|
D | dex_file.cc | 477 int32_t DexFile::ReadSignedInt(const uint8_t* ptr, int zwidth) { in ReadSignedInt() argument 480 val = ((uint32_t)val >> 8) | (((int32_t)*ptr++) << 24); in ReadSignedInt() 488 uint32_t DexFile::ReadUnsignedInt(const uint8_t* ptr, int zwidth, bool fill_on_right) { in ReadUnsignedInt() argument 491 val = (val >> 8) | (((uint32_t)*ptr++) << 24); in ReadUnsignedInt() 500 int64_t DexFile::ReadSignedLong(const uint8_t* ptr, int zwidth) { in ReadSignedLong() argument 503 val = ((uint64_t)val >> 8) | (((int64_t)*ptr++) << 56); in ReadSignedLong() 511 uint64_t DexFile::ReadUnsignedLong(const uint8_t* ptr, int zwidth, bool fill_on_right) { in ReadUnsignedLong() argument 514 val = (val >> 8) | (((uint64_t)*ptr++) << 56); in ReadUnsignedLong()
|
D | dex_file_verifier.cc | 138 const uint8_t* ptr = begin + string_id->string_data_off_; in GetString() local 139 DecodeUnsignedLeb128(&ptr); // Ignore the result. in GetString() 140 return reinterpret_cast<const char*>(ptr); in GetString() 224 bool CheckList(size_t element_size, const char* label, const uint8_t* *ptr); 322 uint32_t FindFirstAnnotationsDirectoryDefiner(const uint8_t* ptr); 534 bool DexFileVerifier::CheckList(size_t element_size, const char* label, const uint8_t* *ptr) { in CheckList() argument 536 if (!CheckListSize(*ptr, 1, 4U, label)) { in CheckList() 540 uint32_t count = *reinterpret_cast<const uint32_t*>(*ptr); in CheckList() 542 if (!CheckListSize(*ptr + 4, count, element_size, label)) { in CheckList() 547 *ptr += 4 + count * element_size; in CheckList() [all …]
|
D | dex_file-inl.h | 43 const uint8_t* ptr = DataBegin() + string_id.string_data_off_; in GetStringLength() local 44 return DecodeUnsignedLeb128(&ptr); in GetStringLength() 50 const uint8_t* ptr = DataBegin() + string_id.string_data_off_; in GetStringDataAndUtf16Length() local 51 *utf16_length = DecodeUnsignedLeb128(&ptr); in GetStringDataAndUtf16Length() 52 return reinterpret_cast<const char*>(ptr); in GetStringDataAndUtf16Length()
|
/art/runtime/gc/accounting/ |
D | mod_union_table_test.cc | 247 for (auto* ptr = space->Begin(); ptr < AlignUp(space->End(), CardTable::kCardSize); in RunTest() local 248 ptr += CardTable::kCardSize) { in RunTest() 249 ASSERT_TRUE(table->ContainsCardFor(reinterpret_cast<uintptr_t>(ptr))); in RunTest()
|
/art/tools/jvmti-agents/field-counts/ |
D | fieldcount.cc | 244 unsigned char* ptr = nullptr; in AgentStart() local 245 CHECK_JVMTI(jvmti->Allocate(strlen(options) + 1, &ptr)); in AgentStart() 246 strcpy(reinterpret_cast<char*>(ptr), options); in AgentStart() 247 CHECK_JVMTI(jvmti->SetEnvironmentLocalStorage(ptr)); in AgentStart()
|
/art/libelffile/elf/ |
D | xz_utils.cc | 104 alloc.Free = [](ISzAllocPtr, void* ptr) { return free(ptr); }; in XzDecompress() argument
|
/art/test/1900-track-alloc/ |
D | alloc.cc | 47 jlong ptr) { in Java_art_Test1900_doDeallocate() argument 51 reinterpret_cast<unsigned char*>(static_cast<intptr_t>(ptr)))); in Java_art_Test1900_doDeallocate()
|
/art/runtime/mirror/ |
D | dex_cache-inl.h | 400 String* ptr = source.object.Read<kReadBarrierOption>(); in FixupStrings() local 401 String* new_source = visitor(ptr); in FixupStrings() 412 Class* ptr = source.object.Read<kReadBarrierOption>(); in FixupResolvedTypes() local 413 Class* new_source = visitor(ptr); in FixupResolvedTypes() 425 MethodType* ptr = source.object.Read<kReadBarrierOption>(); in FixupResolvedMethodTypes() local 426 MethodType* new_source = visitor(ptr); in FixupResolvedMethodTypes()
|
/art/runtime/jit/ |
D | debugger_interface.cc | 219 static void Free(const void* ptr) { free(const_cast<void*>(ptr)); } in Free() 228 static void Free(const void* ptr) { Memory()->FreeData(reinterpret_cast<const uint8_t*>(ptr)); } in Free() 229 static void Free(void* ptr) = delete;
|
/art/libelffile/dwarf/ |
D | debug_info_entry_writer.h | 95 void WriteBlock(Attribute attrib, const uint8_t* ptr, size_t num_bytes) { in WriteBlock() argument 98 this->PushData(ptr, num_bytes); in WriteBlock()
|