Home
last modified time | relevance | path

Searched refs:ptr (Results 51 – 75 of 117) sorted by relevance

12345

/art/tools/jvmti-agents/field-null-percent/
Dfieldnull.cc186 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/
Dart_jvmti.h147 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/
Dfault_handler_x86.cc401 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/
Drosalloc_space.cc260 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()
Dmemory_tool_malloc_space-inl.h224 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()
Dmalloc_space.h57 size_t Free(Thread* self, mirror::Object* ptr) override
169 virtual void RegisterRecentFree(mirror::Object* ptr)
Dmalloc_space.cc136 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()
Dlarge_object_space_test.cc134 mirror::Object* ptr = los_->Alloc(self, size_, &alloc_size, nullptr, in Run() local
139 los_->Free(self, ptr); in Run()
Dzygote_space.h56 size_t Free(Thread* self, mirror::Object* ptr) override;
/art/runtime/
Dcommon_runtime_test.h49 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()
Dintern_table.h204 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/
Dfd_file.cc422 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/
Dtime_utils.cc119 char* ptr = fraction_buffer; in FormatDuration() local
124 *ptr++ = '0'; in FormatDuration()
127 snprintf(ptr, avail_digits, "%" PRIu64, fractional_part); in FormatDuration()
Dstride_iterator.h37 StrideIterator(T* ptr, size_t stride) in StrideIterator() argument
38 : ptr_(reinterpret_cast<uintptr_t>(ptr)), in StrideIterator()
/art/libdexfile/dex/
Dtype_lookup_table.cc170 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()
Ddex_file.cc477 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()
Ddex_file_verifier.cc138 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 …]
Ddex_file-inl.h43 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/
Dmod_union_table_test.cc247 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/
Dfieldcount.cc244 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/
Dxz_utils.cc104 alloc.Free = [](ISzAllocPtr, void* ptr) { return free(ptr); }; in XzDecompress() argument
/art/test/1900-track-alloc/
Dalloc.cc47 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/
Ddex_cache-inl.h400 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/
Ddebugger_interface.cc219 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/
Ddebug_info_entry_writer.h95 void WriteBlock(Attribute attrib, const uint8_t* ptr, size_t num_bytes) { in WriteBlock() argument
98 this->PushData(ptr, num_bytes); in WriteBlock()

12345