/art/runtime/ |
D | mem_map_test.cc | 70 return map->Begin(); in GetValidMapAddress() 86 uint8_t* base0 = m0->Begin(); in RemapAtEndTest() 99 EXPECT_EQ(m0->Begin(), base0) << error_msg; in RemapAtEndTest() 103 uint8_t* base1 = m1->Begin(); in RemapAtEndTest() 186 void* source_addr = source->Begin(); in TEST_F() 187 void* dest_addr = dest->Begin(); in TEST_F() 192 memcpy(source->Begin(), data.data(), data.size()); in TEST_F() 202 ASSERT_EQ(memcmp(dest->Begin(), data.data(), dest->Size()), 0); in TEST_F() 227 uint8_t* source_addr = source->Begin(); in TEST_F() 228 uint8_t* dest_addr = dest->Begin(); in TEST_F() [all …]
|
D | vdex_file.h | 218 const uint8_t* Begin() const { return mmap_->Begin(); } in Begin() function 223 return *reinterpret_cast<const VerifierDepsHeader*>(Begin()); in GetVerifierDepsHeader() 232 return *reinterpret_cast<const DexSectionHeader*>(Begin() + GetDexSectionHeaderOffset()); in GetDexSectionHeader() 236 const uint8_t* result = Begin() + GetDexSectionHeaderOffset(); in GetVerifierDepsStart() 275 return reinterpret_cast<const uint32_t*>(Begin() + sizeof(VerifierDepsHeader))[dex_file_index]; in GetLocationChecksum() 323 return Begin() + GetDexSectionHeaderOffset() + sizeof(DexSectionHeader); in DexBegin()
|
D | elf_file.cc | 176 program_headers_start_ = Begin() + GetHeader().e_phoff; in Setup() 256 Begin() + section_header->sh_offset) { in Setup() 260 << " != " << reinterpret_cast<void*>(Begin() + section_header->sh_offset); in Setup() 294 if (Begin() + offset >= End()) { in CheckAndSet() 299 *target = Begin() + offset; in CheckAndSet() 318 if (Begin() + section_header->sh_offset == source) { in CheckSectionsLinked() 324 } else if (Begin() + section_header->sh_offset == target) { in CheckSectionsLinked() 429 CHECK(map_->Begin() != nullptr) << file->GetPath(); in SetMap() 431 header_ = reinterpret_cast<Elf_Ehdr*>(map_->Begin()); in SetMap() 952 uint8_t* strings = Begin() + string_section.sh_offset; in GetString() [all …]
|
D | mem_map.h | 169 uint8_t* Begin() const { in Begin() function 181 return Begin() + Size(); in End() 197 return Begin() <= addr && addr < End(); in HasAddress()
|
/art/runtime/gc/collector/ |
D | immune_spaces_test.cc | 111 std::unique_ptr<DummyOatFile> oat_file(new DummyOatFile(oat_map->Begin(), oat_map->End())); in CreateImageSpace() 114 new (map->Begin()) ImageHeader( in CreateImageSpace() 115 /*image_begin*/PointerToLowMemUInt32(map->Begin()), in CreateImageSpace() 118 /*image_roots*/PointerToLowMemUInt32(map->Begin()) + 1, in CreateImageSpace() 155 return map->Begin(); in GetContinuousMemoryRegion() 202 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().Begin()), a.Begin()); in TEST_F() 233 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().Begin()), in TEST_F() 234 image_space->Begin()); in TEST_F() 238 EXPECT_NE(image_space->Limit(), space.Begin()); in TEST_F() 248 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().Begin()), in TEST_F() [all …]
|
D | immune_spaces.cc | 46 uintptr_t space_begin = reinterpret_cast<uintptr_t>(space->Begin()); in CreateLargestImmuneRegion() 58 intervals.push_back(Interval(reinterpret_cast<uintptr_t>(image_oat_file->Begin()), in CreateLargestImmuneRegion() 103 VLOG(collector) << "Immune region " << largest_immune_region_.Begin() << "-" in CreateLargestImmuneRegion() 120 return a->Begin() < b->Begin(); in operator ()()
|
/art/compiler/dex/ |
D | dex_to_dex_decompiler_test.cc | 72 int cmp = memcmp(original_dex_file->Begin(), in RunTest() 73 updated_dex_file->Begin(), in RunTest() 80 cmp = memcmp(original_dex_file->Begin(), updated_dex_file->Begin(), updated_dex_file->Size()); in RunTest() 112 cmp = memcmp(original_dex_file->Begin(), updated_dex_file->Begin(), updated_dex_file->Size()); in RunTest()
|
/art/runtime/gc/accounting/ |
D | read_barrier_table.h | 44 CHECK(mem_map != nullptr && mem_map->Begin() != nullptr) in ReadBarrierTable() 49 uint8_t* entry_start = EntryFromAddr(space->Begin()); in ClearForSpace() 72 memset(mem_map_->Begin(), kSetEntryValue, mem_map_->Size()); in SetAll() 75 for (uint32_t* p = reinterpret_cast<uint32_t*>(mem_map_->Begin()); in IsAllCleared() 93 uint8_t* entry_addr = mem_map_->Begin() + reinterpret_cast<uintptr_t>(heap_addr) / kRegionSize; in EntryFromAddr() 109 uint8_t* begin = mem_map_->Begin(); in IsValidEntry()
|
D | bitmap.cc | 36 : mem_map_(mem_map), bitmap_begin_(reinterpret_cast<uintptr_t*>(mem_map->Begin())), in Bitmap() 76 std::copy(source_bitmap->Begin(), in CopyFrom() 77 source_bitmap->Begin() + BitmapSize() / kBitsPerBitmapWord, Begin()); in CopyFrom()
|
D | atomic_stack.h | 177 StackReference<T>* Begin() const { in Begin() function 198 std::sort(Begin(), End(), ObjectComparator()); in Sort() 208 return std::binary_search(Begin(), End(), value, ObjectComparator()); in ContainsSorted() 212 for (auto cur = Begin(), end = End(); cur != end; ++cur) { in Contains() 255 uint8_t* addr = mem_map_->Begin(); in Init()
|
/art/runtime/gc/space/ |
D | region_space.cc | 64 CHECK_EQ(mem_map->Begin(), mem_map->BaseBegin()); in CreateMemMap() 66 if (IsAlignedParam(mem_map->Begin(), kRegionSize)) { in CreateMemMap() 74 CHECK_ALIGNED(mem_map->Begin(), kRegionSize); in CreateMemMap() 85 : ContinuousMemMapAllocSpace(name, mem_map, mem_map->Begin(), mem_map->End(), mem_map->End(), in RegionSpace() 97 CHECK_ALIGNED(mem_map->Begin(), kRegionSize); in RegionSpace() 100 uint8_t* region_addr = mem_map->Begin(); in RegionSpace() 105 accounting::ContinuousSpaceBitmap::Create("region space live bitmap", Begin(), Capacity())); in RegionSpace() 107 CHECK_EQ(regions_[0].Begin(), Begin()); in RegionSpace() 110 CHECK_EQ(static_cast<size_t>(regions_[i].End() - regions_[i].Begin()), kRegionSize); in RegionSpace() 112 CHECK_EQ(regions_[i].End(), regions_[i + 1].Begin()); in RegionSpace() [all …]
|
D | bump_pointer_space.cc | 57 : ContinuousMemMapAllocSpace(name, mem_map, mem_map->Begin(), mem_map->Begin(), mem_map->End(), in BumpPointerSpace() 69 memset(Begin(), 0, Limit() - Begin()); in Clear() 71 CHECK_NE(madvise(Begin(), Limit() - Begin(), MADV_DONTNEED), -1) << "madvise failed"; in Clear() 74 SetEnd(Begin()); in Clear() 87 << reinterpret_cast<void*>(Begin()) << "-" << reinterpret_cast<void*>(End()) << " - " in Dump()
|
D | malloc_space.cc | 54 CHECK_ALIGNED(reinterpret_cast<uintptr_t>(mem_map->Begin()), kGcCardSize); in MallocSpace() 58 Begin(), NonGrowthLimitCapacity())); in MallocSpace() 63 Begin(), NonGrowthLimitCapacity())); in MallocSpace() 144 CHECK_LE(new_end, Begin() + Capacity()); in MoreCore() 148 CHECK_GE(original_end + increment, Begin()); in MoreCore() 203 uint8_t* end = mem_map->Begin() + starting_size_; in CreateZygoteSpace() 228 << " begin=" << reinterpret_cast<void*>(Begin()) in Dump() 266 limit_ = Begin() + new_capacity; in ClampGrowthLimit()
|
D | zygote_space.cc | 52 live_bitmap->VisitMarkedRange(reinterpret_cast<uintptr_t>(mem_map->Begin()), in Create() 68 : ContinuousMemMapAllocSpace(name, mem_map, mem_map->Begin(), mem_map->End(), mem_map->End(), in ZygoteSpace() 75 << " begin=" << reinterpret_cast<void*>(Begin()) in Dump()
|
D | bump_pointer_space-walk-inl.h | 32 uint8_t* pos = Begin(); in Walk() 55 main_end = Begin() + main_block_size_; in Walk()
|
D | large_object_space.h | 83 uint8_t* Begin() const { in Begin() function 92 return End() - Begin(); in Size() 97 return Begin() <= byte_obj && byte_obj < End(); in Contains() 188 return (address - reinterpret_cast<uintptr_t>(Begin())) / kAlignment; in GetSlotIndexForAddress() 194 return reinterpret_cast<uintptr_t>(Begin()) + slot * kAlignment; in GetAllocationAddressForSlot()
|
D | dlmalloc_space.cc | 55 void* mspace = CreateMspace(mem_map->Begin(), starting_size, initial_size); in CreateFromMemMap() 62 uint8_t* end = mem_map->Begin() + starting_size; in CreateFromMemMap() 68 uint8_t* begin = mem_map->Begin(); in CreateFromMemMap() 282 madvise(GetMemMap()->Begin(), GetMemMap()->Size(), MADV_DONTNEED); in Clear() 285 SetEnd(Begin() + starting_size_); in Clear() 286 mspace_ = CreateMspace(mem_map_->Begin(), starting_size_, initial_size_); in Clear()
|
D | large_object_space.cc | 147 mirror::Object* const obj = reinterpret_cast<mirror::Object*>(mem_map->Begin()); in Alloc() 230 callback(mem_map->Begin(), mem_map->End(), mem_map->Size(), arg); in Walk() 355 return new FreeListSpace(name, mem_map, mem_map->Begin(), mem_map->End()); in Create() 373 allocation_info_ = reinterpret_cast<AllocationInfo*>(allocation_info_map_->Begin()); in FreeListSpace() 406 DCHECK(Contains(obj)) << reinterpret_cast<void*>(Begin()) << " " << obj << " " in Free() 534 << " begin: " << reinterpret_cast<void*>(Begin()) in Dump() 538 GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(Begin())); in Dump() 567 for (AllocationInfo* cur_info = GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(Begin())), in SetAllLargeObjectsAsZygoteObjects() 594 if (Begin() >= End()) { in Sweep() 619 return std::make_pair(Begin(), End()); in GetBeginEndAtomic() [all …]
|
/art/dexlayout/ |
D | dex_container.h | 38 virtual uint8_t* Begin() = 0; 51 return Begin() + Size(); in End() 60 uint8_t* Begin() OVERRIDE { in Begin() function
|
/art/openjdkjvmti/ |
D | fixed_up_dex_file.cc | 49 reinterpret_cast<art::DexFile::Header*>(const_cast<uint8_t*>(dex_file->Begin()))->checksum_ = in RecomputeDexChecksum() 94 dex.Begin(), in DCheckVerifyDexFile() 144 data.insert(data.end(), main_section->Begin(), main_section->End()); in Create() 147 memcpy(data.data(), original.Begin(), original.Size()); in Create()
|
D | ti_class_definition.cc | 63 memcpy(temp_mmap_->Begin(), fixed_dex_file->Begin(), fixed_dex_file->Size()); in InitializeMemory() 88 if (current_dex_file_.data() == dex_data_mmap_->Begin()) { in IsModified() 93 } else if (dex_data_.data() == dex_data_mmap_->Begin()) { in IsModified() 138 memcpy(dex_data->data(), fixed_dex_file->Begin(), fixed_dex_file->Size()); in DequickenDexFile() 266 dex_data_ = art::ArrayRef<const unsigned char>(dex_data_mmap_->Begin(), in InitWithDex() 274 current_dex_file_ = art::ArrayRef<const unsigned char>(cur_dex.Begin(), cur_dex.Size()); in InitWithDex() 279 current_dex_file_ = art::ArrayRef<const unsigned char>(dex_data_mmap_->Begin(), in InitWithDex() 298 current_dex_file_ = art::ArrayRef<const unsigned char>(cur_dex.Begin(), cur_dex.Size()); in InitWithDex() 329 current_dex_file_ = art::ArrayRef<const unsigned char>(cur_dex.Begin(), cur_dex.Size()); in Init()
|
/art/patchoat/ |
D | patchoat.h | 123 DCHECK_GT(reinterpret_cast<uintptr_t>(obj), reinterpret_cast<uintptr_t>(heap_->Begin())); in RelocatedCopyOf() 126 reinterpret_cast<uintptr_t>(obj) - reinterpret_cast<uintptr_t>(heap_->Begin()); in RelocatedCopyOf() 128 return reinterpret_cast<T*>(image_->Begin() + heap_off); in RelocatedCopyOf() 141 reinterpret_cast<uintptr_t>(image_space->GetMemMap()->Begin()); in RelocatedCopyOfFollowImages() 142 return reinterpret_cast<T*>(space_map_->find(image_space)->second->Begin() + heap_off); in RelocatedCopyOfFollowImages()
|
/art/libdexfile/dex/ |
D | dex_file_tracking_registrar.cc | 86 << reinterpret_cast<uintptr_t>(dex_file_->Begin()); in SetDexSections() 151 const void* dex_file_begin = reinterpret_cast<const void*>(dex_file_->Begin()); in SetDexFileRegistration() 248 …const void* string_data_begin = reinterpret_cast<const void*>(dex_file_->Begin() + string_id.strin… in SetAllStringDataStartRegistration() 258 auto map_list = reinterpret_cast<const DexFile::MapList*>(dex_file_->Begin() + map_offset); in SetAllStringDataRegistration() 263 …const void* string_data_begin = reinterpret_cast<const void*>(dex_file_->Begin() + map_item.offset… in SetAllStringDataRegistration()
|
D | dex_file_layout.cc | 46 MadviseLargestPageAlignedRegion(dex_file->Begin() + start_offset_, in Madvise() 47 dex_file->Begin() + end_offset_, in Madvise()
|
/art/runtime/base/ |
D | scoped_arena_allocator.cc | 70 return top_arena_->Begin(); in AllocateFromNextArena() 85 size_t allocated = static_cast<size_t>(top_ptr_ - top_arena_->Begin()); in UpdateBytesAllocated() 156 mark_ptr_ = arena_stack_->top_ptr_ = mark_arena_->Begin(); in DoReset()
|