/art/runtime/gc/space/ |
D | bump_pointer_space.cc | 56 : ContinuousMemMapAllocSpace(name, mem_map, mem_map->Begin(), mem_map->Begin(), mem_map->End(), in BumpPointerSpace() 68 memset(Begin(), 0, Limit() - Begin()); in Clear() 70 CHECK_NE(madvise(Begin(), Limit() - Begin(), MADV_DONTNEED), -1) << "madvise failed"; in Clear() 73 SetEnd(Begin()); in Clear() 86 << reinterpret_cast<void*>(Begin()) << "-" << reinterpret_cast<void*>(End()) << " - " in Dump() 154 byte* pos = Begin(); in Walk() 164 main_end = Begin() + main_block_size_; in Walk()
|
D | malloc_space.cc | 49 CHECK(IsAligned<kGcCardSize>(reinterpret_cast<uintptr_t>(mem_map->Begin()))); in MallocSpace() 53 Begin(), NonGrowthLimitCapacity())); in MallocSpace() 58 Begin(), NonGrowthLimitCapacity())); in MallocSpace() 139 CHECK_LE(new_end, Begin() + Capacity()); in MoreCore() 143 CHECK_GE(original_end + increment, Begin()); in MoreCore() 197 byte* end = mem_map->Begin() + starting_size_; in CreateZygoteSpace() 222 << " begin=" << reinterpret_cast<void*>(Begin()) in Dump()
|
D | large_object_space.h | 74 byte* Begin() const { in Begin() function 83 return End() - Begin(); in Size() 88 return Begin() <= byte_obj && byte_obj < End(); in Contains() 159 return (address - reinterpret_cast<uintptr_t>(Begin())) / kAlignment; in GetSlotIndexForAddress() 165 return reinterpret_cast<uintptr_t>(Begin()) + slot * kAlignment; in GetAllocationAddressForSlot()
|
D | dlmalloc_space.cc | 53 void* mspace = CreateMspace(mem_map->Begin(), starting_size, initial_size); in CreateFromMemMap() 60 byte* end = mem_map->Begin() + starting_size; in CreateFromMemMap() 66 byte* begin = mem_map->Begin(); in CreateFromMemMap() 293 madvise(GetMemMap()->Begin(), GetMemMap()->Size(), MADV_DONTNEED); in Clear() 296 SetEnd(Begin() + starting_size_); in Clear() 297 mspace_ = CreateMspace(mem_map_->Begin(), starting_size_, initial_size_); in Clear()
|
D | zygote_space.cc | 50 live_bitmap->VisitMarkedRange(reinterpret_cast<uintptr_t>(mem_map->Begin()), in Create() 65 : ContinuousMemMapAllocSpace(name, mem_map, mem_map->Begin(), mem_map->End(), mem_map->End(), in ZygoteSpace() 72 << " begin=" << reinterpret_cast<void*>(Begin()) in Dump()
|
D | large_object_space.cc | 120 mirror::Object* obj = reinterpret_cast<mirror::Object*>(mem_map->Begin()); in Alloc() 179 callback(mem_map->Begin(), mem_map->End(), mem_map->Size(), arg); in Walk() 291 return new FreeListSpace(name, mem_map, mem_map->Begin(), mem_map->End()); in Create() 308 allocation_info_ = reinterpret_cast<AllocationInfo*>(allocation_info_map_->Begin()); in FreeListSpace() 341 DCHECK(Contains(obj)) << reinterpret_cast<void*>(Begin()) << " " << obj << " " in Free() 467 << " begin: " << reinterpret_cast<void*>(Begin()) in Dump() 471 GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(Begin())); in Dump() 509 if (Begin() >= End()) { in Sweep() 519 reinterpret_cast<uintptr_t>(Begin()), in Sweep()
|
D | rosalloc_space.cc | 59 allocator::RosAlloc* rosalloc = CreateRosAlloc(mem_map->Begin(), starting_size, initial_size, in CreateFromMemMap() 67 byte* end = mem_map->Begin() + starting_size; in CreateFromMemMap() 73 byte* begin = mem_map->Begin(); in CreateFromMemMap() 349 madvise(GetMemMap()->Begin(), GetMemMap()->Size(), MADV_DONTNEED); in Clear() 354 rosalloc_ = CreateRosAlloc(mem_map_->Begin(), starting_size_, initial_size_, in Clear()
|
D | space.h | 249 byte* Begin() const { in Begin() function 275 return End() - Begin(); in Size() 283 return Limit() - Begin(); in Capacity() 290 return byte_ptr >= Begin() && byte_ptr < Limit(); in HasAddress()
|
/art/compiler/ |
D | elf_patcher.cc | 56 reinterpret_cast<uintptr_t>(oat_file->Begin()), cb, cb_data, error_msg); in Patch() 67 OatHeader* oat_header = reinterpret_cast<OatHeader*>(elf->Begin() + data_sec->sh_offset); in Patch() 132 CHECK_GE(patch_ptr, reinterpret_cast<uintptr_t>(oat_file_->Begin())); in GetPatchLocation() 134 uintptr_t off = patch_ptr - reinterpret_cast<uintptr_t>(oat_file_->Begin()); in GetPatchLocation() 137 CHECK_GE(ret, reinterpret_cast<uintptr_t>(elf_file_->Begin())); in GetPatchLocation() 181 uintptr_t loc = patch_ptr - (reinterpret_cast<uintptr_t>(oat_file_->Begin()) + in SetPatchLocation() 183 CHECK_GT(patch_ptr, reinterpret_cast<uintptr_t>(oat_file_->Begin()) + in SetPatchLocation() 216 uintptr_t code_base = reinterpret_cast<uintptr_t>(target_oat->Begin()); in PatchElf() 287 CHECK_LE(reinterpret_cast<uintptr_t>(elf_file_->Begin()) + shdr->sh_offset + shdr->sh_size, in WriteOutPatchData() 293 memcpy(elf_file_->Begin() + shdr->sh_offset, patches_.data(), in WriteOutPatchData()
|
D | elf_stripper.cc | 115 memmove(elf_file->Begin() + offset, in Strip() 116 elf_file->Begin() + old_sh->sh_offset, in Strip() 124 memcpy(elf_file->Begin() + offset, §ion_headers[0], section_headers_size_in_bytes); in Strip()
|
/art/runtime/gc/accounting/ |
D | atomic_stack.h | 143 T* Begin() const { in Begin() function 165 std::sort(Begin(), End()); in Sort() 175 return std::binary_search(Begin(), End(), value); in ContainsSorted() 179 return std::find(Begin(), End(), value) != End(); in Contains() 216 byte* addr = mem_map_->Begin(); in Init()
|
D | card_table.cc | 71 byte* cardtable_begin = mem_map->Begin(); in Create() 95 byte* card_start = CardFromAddr(space->Begin()); in ClearSpaceCards() 111 byte* begin = mem_map_->Begin() + offset_; in CheckAddrIsInCardTable()
|
D | space_bitmap.cc | 40 uword* bitmap_begin = reinterpret_cast<uword*>(mem_map->Begin()); in CreateFromMemMap() 100 …std::copy(source_bitmap->Begin(), source_bitmap->Begin() + source_bitmap->Size() / kWordSize, Begi… in CopyFrom()
|
D | remembered_set.cc | 59 card_table->ModifyCardsAtomic(space_->Begin(), space_->End(), AgeCardVisitor(), card_visitor); in ClearCards() 170 DCHECK_LE(space_->Begin(), start); in AssertAllDirtyCardsAreWithinSpace()
|
/art/runtime/ |
D | oat_file.cc | 51 oat_file->begin_ = elf_file->Begin() + hdr->sh_offset; in OpenWithElfFile() 52 oat_file->end_ = elf_file->Begin() + hdr->sh_size + hdr->sh_offset; in OpenWithElfFile() 237 const byte* oat = Begin(); in Setup() 248 Begin(), sizeof(OatHeader), GetOatHeader().GetKeyValueStoreSize(), in Setup() 308 const uint8_t* dex_file_pointer = Begin() + dex_file_offset; in Setup() 355 return *reinterpret_cast<const OatHeader*>(Begin()); in GetOatHeader() 358 const byte* OatFile::Begin() const { in Begin() function in art::OatFile 471 const byte* oat_class_pointer = oat_file_->Begin() + oat_class_offset; in GetOatClass() 547 return reinterpret_cast<const uint8_t*>(oat_method_offsets) - oat_file_->Begin(); in GetOatMethodOffsetsOffset() 580 return OatMethod(oat_file_->Begin(), oat_method_offsets->code_offset_); in GetOatMethod() [all …]
|
D | mem_map.h | 102 byte* Begin() const { in Begin() function 111 return Begin() + Size(); in End() 127 return Begin() <= addr && addr < End(); in HasAddress()
|
D | elf_file.cc | 209 program_headers_start_ = Begin() + GetHeader().e_phoff; in Setup() 289 Begin() + section_header->sh_offset) { in Setup() 293 << " != " << reinterpret_cast<void*>(Begin() + section_header->sh_offset); in Setup() 329 if (Begin() + offset >= End()) { in CheckAndSet() 334 *target = Begin() + offset; in CheckAndSet() 351 if (Begin() + section_header->sh_offset == source) { in CheckSectionsLinked() 357 } else if (Begin() + section_header->sh_offset == target) { in CheckSectionsLinked() 460 CHECK(map_->Begin() != nullptr) << file_->GetPath(); in SetMap() 462 header_ = reinterpret_cast<Elf32_Ehdr*>(map_->Begin()); in SetMap() 948 byte* strings = Begin() + string_section.sh_offset; in GetString() [all …]
|
D | elf_file.h | 57 byte* Begin() const { in Begin() function 58 return map_->Begin(); in Begin()
|
/art/runtime/gc/collector/ |
D | immune_region.cc | 41 mirror::Object* space_begin = reinterpret_cast<mirror::Object*>(space->Begin()); in AddContinuousSpace() 60 begin_ <= reinterpret_cast<mirror::Object*>(space->Begin()) && in ContainsSpace()
|
D | mark_compact.cc | 123 bump_pointer_ = reinterpret_cast<byte*>(space_->Begin()); in CalculateObjectForwardingAddresses() 126 objects_before_forwarding_->VisitMarkedRange(reinterpret_cast<uintptr_t>(space_->Begin()), in CalculateObjectForwardingAddresses() 191 "objects before forwarding", space_->Begin(), space_->Size())); in MarkingPhase() 194 "objects with lock words", space_->Begin(), space_->Size())); in MarkingPhase() 277 std::vector<Object*> temp(mark_stack_->Begin(), mark_stack_->End()); in ResizeMarkStack() 360 bitmap->VisitMarkedRange(reinterpret_cast<uintptr_t>(space->Begin()), in UpdateReferences() 372 objects_before_forwarding_->VisitMarkedRange(reinterpret_cast<uintptr_t>(space_->Begin()), in UpdateReferences() 524 objects_before_forwarding_->VisitMarkedRange(reinterpret_cast<uintptr_t>(space_->Begin()), in MoveObjects()
|
/art/compiler/utils/ |
D | scoped_arena_allocator.cc | 72 return top_arena_->Begin(); in AllocateFromNextArena() 87 size_t allocated = static_cast<size_t>(top_ptr_ - top_arena_->Begin()); in UpdateBytesAllocated() 132 mark_ptr_ = arena_stack_->top_ptr_ = mark_arena_->Begin(); in Reset()
|
D | arena_allocator.cc | 123 memory_ = map_->Begin(); in Arena() 142 memset(Begin(), 0, bytes_allocated_); in Reset() 260 ptr_ = begin_ = new_arena->Begin(); in ObtainNewArenaForAllocation()
|
/art/patchoat/ |
D | patchoat.cc | 331 if (out->WriteFully(reinterpret_cast<char*>(oat_file_->Begin()), expect) && in WriteElf() 350 if (out->WriteFully(reinterpret_cast<char*>(image_->Begin()), expect) && in WriteImage() 437 ImageHeader* image_header = reinterpret_cast<ImageHeader*>(image_->Begin()); in PatchImage() 459 uintptr_t begin = reinterpret_cast<uintptr_t>(heap_->Begin()); in InHeap() 485 DCHECK_GT(reinterpret_cast<uintptr_t>(obj), reinterpret_cast<uintptr_t>(heap_->Begin())); in RelocatedCopyOf() 488 reinterpret_cast<uintptr_t>(obj) - reinterpret_cast<uintptr_t>(heap_->Begin()); in RelocatedCopyOf() 490 return reinterpret_cast<mirror::Object*>(image_->Begin() + heap_off); in RelocatedCopyOf() 507 OatHeader* oat_header = reinterpret_cast<OatHeader*>(elf_file->Begin() + rodata_sec->sh_offset); in GetOatHeader() 615 uintptr_t* patches = reinterpret_cast<uintptr_t*>(oat_file_->Begin() + patches_sec->sh_offset); in CheckOatFile() 643 OatHeader* oat_header = reinterpret_cast<OatHeader*>(oat_file_->Begin() + rodata_sec->sh_offset); in PatchOatHeader() [all …]
|
/art/test/701-easy-div-rem/ |
D | expected.txt | 1 Begin
|
/art/runtime/native/ |
D | java_lang_DexCache.cc | 34 void* address = const_cast<void*>(reinterpret_cast<const void*>(dex_file->Begin())); in DexCache_getDexNative()
|