Home
last modified time | relevance | path

Searched refs:Begin (Results 1 – 25 of 127) sorted by relevance

123456

/art/libartbase/base/
Dmem_map_test.cc61 return map.Begin(); in GetValidMapAddress()
76 uint8_t* base0 = m0.Begin(); in RemapAtEndTest()
89 EXPECT_EQ(m0.Begin(), base0) << error_msg; in RemapAtEndTest()
93 uint8_t* base1 = m1.Begin(); in RemapAtEndTest()
115 MemMap m2 = m1.RemapAtEnd(m1.Begin(), in RemapAtEndTest()
177 void* source_addr = source.Begin(); in TEST_F()
178 void* dest_addr = dest.Begin(); in TEST_F()
183 memcpy(source.Begin(), data.data(), data.size()); in TEST_F()
193 ASSERT_EQ(memcmp(dest.Begin(), data.data(), dest.Size()), 0); in TEST_F()
214 uint8_t* source_addr = source.Begin(); in TEST_F()
[all …]
Dscoped_arena_allocator.cc70 return top_arena_->Begin(); in AllocateFromNextArena()
85 size_t allocated = static_cast<size_t>(top_ptr_ - top_arena_->Begin()); in UpdateBytesAllocated()
165 mark_ptr_ = arena_stack_->top_ptr_ = mark_arena_->Begin(); in DoReset()
186 sum += static_cast<size_t>(arena_stack_->top_ptr_ - arena->Begin()); in ApproximatePeakBytes()
/art/runtime/gc/collector/
Dimmune_spaces_test.cc112 std::unique_ptr<FakeOatFile> oat_file(new FakeOatFile(oat_map.Begin(), oat_map.End())); in CreateImageSpace()
115 new (image_map.Begin()) ImageHeader( in CreateImageSpace()
118 /*image_begin=*/ PointerToLowMemUInt32(image_map.Begin()), in CreateImageSpace()
121 /*image_roots=*/ PointerToLowMemUInt32(image_map.Begin()) + 1, in CreateImageSpace()
124 /*oat_file_begin=*/ PointerToLowMemUInt32(oat_map.Begin()), in CreateImageSpace()
125 /*oat_data_begin=*/ PointerToLowMemUInt32(oat_map.Begin()), in CreateImageSpace()
126 /*oat_data_end=*/ PointerToLowMemUInt32(oat_map.Begin() + oat_size), in CreateImageSpace()
127 /*oat_file_end=*/ PointerToLowMemUInt32(oat_map.Begin() + oat_size), in CreateImageSpace()
183 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().Begin()), a.Begin()); in TEST_F()
226 EXPECT_EQ(reinterpret_cast<uint8_t*>(spaces.GetLargestImmuneRegion().Begin()), in TEST_F()
[all …]
Dimmune_spaces.cc46 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/runtime/gc/accounting/
Dread_barrier_table.h47 CHECK(mem_map_.IsValid() && mem_map_.Begin() != nullptr) in ReadBarrierTable()
51 uint8_t* entry_start = EntryFromAddr(space->Begin()); in ClearForSpace()
74 memset(mem_map_.Begin(), kSetEntryValue, mem_map_.Size()); in SetAll()
77 for (uint32_t* p = reinterpret_cast<uint32_t*>(mem_map_.Begin()); in IsAllCleared()
95 uint8_t* entry_addr = mem_map_.Begin() + reinterpret_cast<uintptr_t>(heap_addr) / kRegionSize; in EntryFromAddr()
111 uint8_t* begin = mem_map_.Begin(); in IsValidEntry()
Dbitmap.cc37 bitmap_begin_(reinterpret_cast<uintptr_t*>(mem_map_.Begin())), in Bitmap()
78 std::copy(source_bitmap->Begin(), in CopyFrom()
79 source_bitmap->Begin() + BitmapSize() / kBitsPerBitmapWord, Begin()); in CopyFrom()
Datomic_stack.h180 StackReference<T>* Begin() const { in Begin() function
201 std::sort(Begin(), End(), ObjectComparator()); in Sort()
211 return std::binary_search(Begin(), End(), value, ObjectComparator()); in ContainsSorted()
215 for (auto cur = Begin(), end = End(); cur != end; ++cur) { in Contains()
261 uint8_t* addr = mem_map_.Begin(); in Init()
/art/runtime/gc/space/
Dregion_space.cc81 CHECK_EQ(mem_map.Begin(), mem_map.BaseBegin()); in CreateMemMap()
83 if (IsAlignedParam(mem_map.Begin(), kRegionSize)) { in CreateMemMap()
91 CHECK_ALIGNED(mem_map.Begin(), kRegionSize); in CreateMemMap()
105 mem_map.Begin(), in RegionSpace()
122 CHECK_ALIGNED(mem_map_.Begin(), kRegionSize); in RegionSpace()
125 uint8_t* region_addr = mem_map_.Begin(); in RegionSpace()
130 accounting::ContinuousSpaceBitmap::Create("region space live bitmap", Begin(), Capacity()); in RegionSpace()
132 CHECK_EQ(regions_[0].Begin(), Begin()); in RegionSpace()
135 CHECK_EQ(static_cast<size_t>(regions_[i].End() - regions_[i].Begin()), kRegionSize); in RegionSpace()
137 CHECK_EQ(regions_[i].End(), regions_[i + 1].Begin()); in RegionSpace()
[all …]
Dbump_pointer_space.cc64 mem_map.Begin(), in BumpPointerSpace()
65 mem_map.Begin(), in BumpPointerSpace()
78 memset(Begin(), 0, Limit() - Begin()); in Clear()
80 CHECK_NE(madvise(Begin(), Limit() - Begin(), MADV_DONTNEED), -1) << "madvise failed"; in Clear()
83 SetEnd(Begin()); in Clear()
96 << reinterpret_cast<void*>(Begin()) << "-" << reinterpret_cast<void*>(End()) << " - " in Dump()
Dmalloc_space.cc64 CHECK_ALIGNED(reinterpret_cast<uintptr_t>(mem_map_.Begin()), kGcCardSize); in MallocSpace()
68 Begin(), NonGrowthLimitCapacity()); in MallocSpace()
73 Begin(), NonGrowthLimitCapacity()); in MallocSpace()
159 CHECK_LE(new_end, Begin() + Capacity()); in MoreCore()
163 CHECK_GE(original_end + increment, Begin()); in MoreCore()
218 uint8_t* end = mem_map.Begin() + starting_size_; in CreateZygoteSpace()
251 << " begin=" << reinterpret_cast<void*>(Begin()) in Dump()
289 limit_ = Begin() + new_capacity; in ClampGrowthLimit()
Dzygote_space.cc54 live_bitmap.VisitMarkedRange(reinterpret_cast<uintptr_t>(mem_map.Begin()), in Create()
63 GetLiveBitmap()->VisitMarkedRange(reinterpret_cast<uintptr_t>(Begin()), in SetMarkBitInLiveObjects()
79 mem_map.Begin(), in ZygoteSpace()
88 << " begin=" << reinterpret_cast<void*>(Begin()) in Dump()
Dspace.cc103 *live_bitmap, *mark_bitmap, reinterpret_cast<uintptr_t>(Begin()), in Sweep()
118 return GetLiveBitmap()->Begin() == GetMarkBitmap()->Begin(); in HasBoundBitmaps()
Dbump_pointer_space-walk-inl.h32 uint8_t* pos = Begin(); in Walk()
55 main_end = Begin() + main_block_size_; in Walk()
Dlarge_object_space.h88 uint8_t* Begin() const { in Begin() function
97 return End() - Begin(); in Size()
102 return Begin() <= byte_obj && byte_obj < End(); in Contains()
207 return (address - reinterpret_cast<uintptr_t>(Begin())) / kAlignment; in GetSlotIndexForAddress()
213 return reinterpret_cast<uintptr_t>(Begin()) + slot * kAlignment; in GetAllocationAddressForSlot()
Dlarge_object_space.cc149 mirror::Object* const obj = reinterpret_cast<mirror::Object*>(mem_map.Begin()); in Alloc()
234 callback(mem_map->Begin(), mem_map->End(), mem_map->Size(), arg); in Walk()
369 return new FreeListSpace(name, std::move(mem_map), mem_map.Begin(), mem_map.End()); in Create()
390 allocation_info_ = reinterpret_cast<AllocationInfo*>(allocation_info_map_.Begin()); in FreeListSpace()
428 DCHECK(Contains(obj)) << reinterpret_cast<void*>(Begin()) << " " << obj << " " in Free()
560 << " begin: " << reinterpret_cast<void*>(Begin()) in Dump()
564 GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(Begin())); in Dump()
593 for (AllocationInfo* cur_info = GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(Begin())), in SetAllLargeObjectsAsZygoteObjects()
626 if (Begin() >= End()) { in Sweep()
652 return std::make_pair(Begin(), End()); in GetBeginEndAtomic()
[all …]
Ddlmalloc_space.cc72 void* mspace = CreateMspace(mem_map.Begin(), starting_size, initial_size); in CreateFromMemMap()
79 uint8_t* end = mem_map.Begin() + starting_size; in CreateFromMemMap()
85 uint8_t* begin = mem_map.Begin(); in CreateFromMemMap()
339 madvise(GetMemMap()->Begin(), GetMemMap()->Size(), MADV_DONTNEED); in Clear()
342 SetEnd(Begin() + starting_size_); in Clear()
343 mspace_ = CreateMspace(mem_map_.Begin(), starting_size_, initial_size_); in Clear()
/art/runtime/
Dvdex_file.h137 Begin() + sizeof(VdexFileHeader) + index * sizeof(VdexSectionHeader)); in GetSectionHeaderAt()
178 Begin() + GetSectionHeader(VdexSection::kChecksumSection).section_offset); in GetDexChecksumsArray()
251 const uint8_t* Begin() const { return mmap_.Begin(); } in Begin() function
256 return *reinterpret_cast<const VdexFileHeader*>(Begin()); in GetVdexFileHeader()
261 Begin() + GetSectionHeader(VdexSection::kVerifierDepsSection).section_offset, in GetVerifierDepsData()
315 return Begin() + GetSectionHeader(VdexSection::kDexFileSection).section_offset; in DexBegin()
320 return Begin() + GetSectionHeader(VdexSection::kTypeLookupTableSection).section_offset; in TypeLookupTableDataBegin()
Delf_file.cc171 program_headers_start_ = Begin() + GetHeader().e_phoff; in Setup()
251 Begin() + section_header->sh_offset) { in Setup()
255 << " != " << reinterpret_cast<void*>(Begin() + section_header->sh_offset); in Setup()
288 if (Begin() + offset >= End()) { in CheckAndSet()
293 *target = Begin() + offset; in CheckAndSet()
312 if (Begin() + section_header->sh_offset == source) { in CheckSectionsLinked()
318 } else if (Begin() + section_header->sh_offset == target) { in CheckSectionsLinked()
423 CHECK(map_.Begin() != nullptr) << file->GetPath(); in SetMap()
425 header_ = reinterpret_cast<Elf_Ehdr*>(map_.Begin()); in SetMap()
943 uint8_t* strings = Begin() + string_section.sh_offset; in GetString()
[all …]
/art/dexlayout/
Ddex_container.h38 virtual uint8_t* Begin() = 0;
54 return Begin() + Size(); in End()
63 uint8_t* Begin() override { in Begin() function
/art/openjdkjvmti/
Dfixed_up_dex_file.cc49 reinterpret_cast<art::DexFile::Header*>(const_cast<uint8_t*>(dex_file->Begin()))->checksum_ = in RecomputeDexChecksum()
57 dex.Begin(), in DCheckVerifyDexFile()
106 data.insert(data.end(), main_section->Begin(), main_section->End()); in Create()
109 memcpy(data.data(), original.Begin(), original.Size()); in Create()
Dti_class_definition.cc65 memcpy(temp_mmap_.Begin(), fixed_dex_file->Begin(), fixed_dex_file->Size()); in InitializeMemory()
91 if (current_dex_file_.data() == dex_data_mmap_.Begin()) { in IsModified()
96 } else if (dex_data_.data() == dex_data_mmap_.Begin()) { in IsModified()
142 memcpy(dex_data->data(), fixed_dex_file->Begin(), fixed_dex_file->Size()); in DequickenDexFile()
263 dex_data_ = art::ArrayRef<const unsigned char>(dex_data_mmap_.Begin(), in InitWithDex()
271 current_dex_file_ = art::ArrayRef<const unsigned char>(cur_dex.Begin(), cur_dex.Size()); in InitWithDex()
276 current_dex_file_ = art::ArrayRef<const unsigned char>(dex_data_mmap_.Begin(), in InitWithDex()
295 current_dex_file_ = art::ArrayRef<const unsigned char>(cur_dex.Begin(), cur_dex.Size()); in InitWithDex()
326 current_dex_file_ = art::ArrayRef<const unsigned char>(cur_dex.Begin(), cur_dex.Size()); in Init()
/art/runtime/jit/
Djit_memory_region.cc179 uint8_t* const divider = data_pages.Begin() + data_capacity; in Initialize()
259 << ": data_pages=" << reinterpret_cast<void*>(data_pages_.Begin()) in Initialize()
260 << ", exec_pages=" << reinterpret_cast<void*>(exec_pages_.Begin()) in Initialize()
261 << ", non_exec_pages=" << reinterpret_cast<void*>(non_exec_pages_.Begin()) in Initialize()
262 << ", writable_data_pages=" << reinterpret_cast<void*>(writable_data_pages_.Begin()); in Initialize()
268 HasDualDataMapping() ? writable_data_pages_.Begin() : data_pages_.Begin(), in Initialize()
290 exec_mspace_ = create_mspace_with_base(code_heap->Begin(), exec_end_, false /*locked*/); in Initialize()
340 void* result = code_pages->Begin() + exec_end_; in MoreCore()
346 void* result = writable_data_pages->Begin() + data_end_; in MoreCore()
Djit_scoped_code_cache_write.h46 CheckedCall(mprotect, "Cache +W", updatable_pages->Begin(), updatable_pages->Size(), prot); in ScopedCodeCacheWrite()
57 CheckedCall(mprotect, "Cache -W", updatable_pages->Begin(), updatable_pages->Size(), prot); in ~ScopedCodeCacheWrite()
/art/libdexfile/dex/
Ddex_file_tracking_registrar.cc87 << reinterpret_cast<uintptr_t>(dex_file_->Begin()); in SetDexSections()
153 const void* dex_file_begin = reinterpret_cast<const void*>(dex_file_->Begin()); in SetDexFileRegistration()
222 …const void* string_data_begin = reinterpret_cast<const void*>(dex_file_->Begin() + string_id.strin… in SetAllStringDataStartRegistration()
232 auto map_list = reinterpret_cast<const dex::MapList*>(dex_file_->Begin() + map_offset); in SetAllStringDataRegistration()
237 …const void* string_data_begin = reinterpret_cast<const void*>(dex_file_->Begin() + map_item.offset… in SetAllStringDataRegistration()
Ddex_file_verifier_test.cc45 CHECK_EQ(*(dex_file->Begin() + offset), '5'); in MakeDexVersion37()
46 *(const_cast<uint8_t*>(dex_file->Begin()) + offset) = '7'; in MakeDexVersion37()
75 FixUpChecksum(const_cast<uint8_t*>(dex_file->Begin())); in VerifyModification()
80 dex_file->Begin(), in VerifyModification()
1303 *(const_cast<uint8_t*>(dex_file->Begin()) + 416) = 0x14U; in TEST_F()
1327 reinterpret_cast<const DexFile::Header*>(dex_file->Begin())); in TEST_F()
1623 dex_file->Begin(), in TEST_F()
1629 dex_file->Begin(), in TEST_F()
1637 const_cast<uint8_t*>(dex_file->Begin())); in TEST_F()
1640 dex_file->Begin(), in TEST_F()
[all …]

123456