/art/libartbase/base/ |
D | mem_map.h | 59 class MemMap { 64 MemMap() {} in MemMap() function 67 static MemMap Invalid() { in Invalid() 68 return MemMap(); in Invalid() 71 MemMap(MemMap&& other) noexcept REQUIRES(!MemMap::mem_maps_lock_); 72 MemMap& operator=(MemMap&& other) noexcept REQUIRES(!MemMap::mem_maps_lock_) { 79 ~MemMap() REQUIRES(!MemMap::mem_maps_lock_); 82 void swap(MemMap& other); 115 bool ReplaceWith(/*in-out*/MemMap* source, /*out*/std::string* error); 132 static MemMap MapAnonymous(const char* name, [all …]
|
D | mem_map_test.cc | 55 MemMap map = MemMap::MapAnonymous("temp", in GetValidMapAddress() 69 MemMap m0 = MemMap::MapAnonymous("MemMapTest_RemapAtEndTest_map0", in RemapAtEndTest() 84 MemMap m1 = m0.RemapAtEnd(base0 + page_size, in RemapAtEndTest() 115 MemMap m2 = m1.RemapAtEnd(m1.Begin(), in RemapAtEndTest() 124 MemMap::Init(); in CommonInit() 129 return MemMap::next_mem_pos_; in GetLinearScanPos() 165 MemMap dest = MemMap::MapAnonymous("MapAnonymousEmpty-atomic-replace-dest", in TEST_F() 171 MemMap source = MemMap::MapAnonymous("MapAnonymous-atomic-replace-source", in TEST_F() 198 MemMap dest = MemMap::MapAnonymous("MapAnonymousEmpty-atomic-replace-dest", in TEST_F() 208 MemMap source = MemMap::MapAnonymous("MapAnonymous-atomic-replace-source", in TEST_F() [all …]
|
D | mem_map.cc | 57 using Maps = AllocationTrackingMultiMap<void*, MemMap*, kAllocatorTagMaps>; 60 static Maps* gMaps GUARDED_BY(MemMap::GetMemMapsLock()) = nullptr; 63 static std::map<std::string, int> debugStrMap GUARDED_BY(MemMap::GetMemMapsLock()); 66 Maps::iterator GetGMapsEntry(const MemMap& map) REQUIRES(MemMap::GetMemMapsLock()) { in GetGMapsEntry() 84 MemMap* map = it->second; in operator <<() 91 std::mutex* MemMap::mem_maps_lock_ = nullptr; 148 uintptr_t MemMap::next_mem_pos_ = GenerateNextMemPos(); 153 bool MemMap::ContainedWithinExistingMap(uint8_t* ptr, size_t size, std::string* error_msg) { in ContainedWithinExistingMap() 160 MemMap* const map = pair.second; in ContainedWithinExistingMap() 185 bool MemMap::CheckMapRequest(uint8_t* expected_ptr, void* actual_ptr, size_t byte_count, in CheckMapRequest() [all …]
|
D | mem_map_unix.cc | 23 void MemMap::TargetMMapInit() { in TargetMMapInit() 27 void* MemMap::TargetMMap(void* start, size_t len, int prot, int flags, int fd, off_t fd_off) { in TargetMMap() 31 int MemMap::TargetMUnmap(void* start, size_t len) { in TargetMUnmap()
|
D | zip_archive.cc | 71 MemMap ZipEntry::ExtractToMemMap(const char* zip_filename, in ExtractToMemMap() 77 MemMap map = MemMap::MapAnonymous(name.c_str(), in ExtractToMemMap() 84 return MemMap::Invalid(); in ExtractToMemMap() 90 return MemMap::Invalid(); in ExtractToMemMap() 96 MemMap ZipEntry::MapDirectlyFromFile(const char* zip_filename, std::string* error_msg) { in MapDirectlyFromFile() 113 return MemMap::Invalid(); in MapDirectlyFromFile() 121 return MemMap::Invalid(); in MapDirectlyFromFile() 134 MemMap map = in MapDirectlyFromFile() 135 MemMap::MapFile(GetUncompressedLength(), // Byte count in MapDirectlyFromFile() 190 MemMap ZipEntry::MapDirectlyOrExtract(const char* zip_filename, in MapDirectlyOrExtract() [all …]
|
D | zip_archive.h | 40 class MemMap; variable 47 MemMap ExtractToMemMap(const char* zip_filename, 57 MemMap MapDirectlyFromFile(const char* zip_filename, /*out*/std::string* error_msg); 60 MemMap MapDirectlyOrExtract(const char* zip_filename,
|
D | mem_map_windows.cc | 39 void MemMap::TargetMMapInit() { in TargetMMapInit() 45 void* MemMap::TargetMMap(void* start, size_t len, int prot, int flags, int fd, off_t fd_off) { in TargetMMap() 133 int MemMap::TargetMUnmap(void* start, size_t len) { in TargetMUnmap()
|
D | mem_map_fuchsia.cc | 34 void MemMap::TargetMMapInit() { in TargetMMapInit() 61 void* MemMap::TargetMMap(void* start, size_t len, int prot, int flags, int fd, off_t fd_off) { in TargetMMap() 130 int MemMap::TargetMUnmap(void* start, size_t len) { in TargetMUnmap()
|
/art/runtime/gc/accounting/ |
D | bitmap.cc | 30 Bitmap* Bitmap::CreateFromMemMap(MemMap&& mem_map, size_t num_bits) { in CreateFromMemMap() 35 Bitmap::Bitmap(MemMap&& mem_map, size_t bitmap_size) in Bitmap() 47 MemMap Bitmap::AllocateMemMap(const std::string& name, size_t num_bits) { in AllocateMemMap() 51 MemMap mem_map = MemMap::MapAnonymous(name.c_str(), in AllocateMemMap() 63 MemMap mem_map = AllocateMemMap(name, num_bits); in Create() 88 MemMap mem_map = Bitmap::AllocateMemMap(name, num_bits); in Create() 95 MemMap&& mem_map, uintptr_t begin, size_t num_bits) { in CreateFromMemMap()
|
D | bitmap.h | 44 static Bitmap* CreateFromMemMap(MemMap&& mem_map, size_t num_bits); 103 Bitmap(MemMap&& mem_map, size_t bitmap_size); 107 static MemMap AllocateMemMap(const std::string& name, size_t num_bits); 113 MemMap mem_map_; 132 MemMap&& mem_map, uintptr_t cover_begin, size_t num_bits); 179 MemoryRangeBitmap(MemMap&& mem_map, uintptr_t begin, size_t num_bits) in MemoryRangeBitmap()
|
D | card_table.cc | 67 MemMap mem_map = MemMap::MapAnonymous("card table", in Create() 95 CardTable::CardTable(MemMap&& mem_map, uint8_t* biased_begin, size_t offset) in CardTable()
|
/art/runtime/gc/collector/ |
D | immune_spaces_test.cc | 43 DummyImageSpace(MemMap&& map, in DummyImageSpace() 46 MemMap&& oat_map) in DummyImageSpace() 58 MemMap oat_map_; 83 MemMap* image_reservation, in CreateImageSpace() 84 MemMap* oat_reservation) { in CreateImageSpace() 88 MemMap image_map = MemMap::MapAnonymous("DummyImageSpace", in CreateImageSpace() 101 MemMap oat_map = MemMap::MapAnonymous("OatMap", in CreateImageSpace() 193 MemMap reservation = MemMap::MapAnonymous("reserve", in TEST_F() 199 MemMap image_reservation = reservation.TakeReservedMemory(kImageSize); in TEST_F() 256 MemMap reservation = MemMap::MapAnonymous("reserve", in TEST_F() [all …]
|
/art/runtime/base/ |
D | mem_map_arena_pool.cc | 41 static MemMap Allocate(size_t size, bool low_4gb, const char* name); 43 MemMap map_; 55 MemMap MemMapArena::Allocate(size_t size, bool low_4gb, const char* name) { in Allocate() 60 MemMap map = MemMap::MapAnonymous(name, in Allocate() 84 MemMap::Init(); in MemMapArenaPool()
|
/art/runtime/gc/space/ |
D | large_object_space.h | 113 virtual void ForEachMemMap(std::function<void(const MemMap&)> func) const = 0; 164 void ForEachMemMap(std::function<void(const MemMap&)> func) const override REQUIRES(!lock_); 169 MemMap mem_map; 197 void ForEachMemMap(std::function<void(const MemMap&)> func) const override REQUIRES(!lock_); 201 FreeListSpace(const std::string& name, MemMap&& mem_map, uint8_t* begin, uint8_t* end); 229 MemMap mem_map_; 231 MemMap allocation_info_map_;
|
D | malloc_space.cc | 47 MemMap&& mem_map, in MallocSpace() 83 MemMap MallocSpace::CreateMemMap(const std::string& name, in CreateMemMap() 96 return MemMap::Invalid(); in CreateMemMap() 102 return MemMap::Invalid(); in CreateMemMap() 110 MemMap mem_map = MemMap::MapAnonymous(name.c_str(), in CreateMemMap() 213 MemMap mem_map = GetMemMap()->RemapAtEnd( in CreateZygoteSpace()
|
D | space.h | 379 MemMap* GetMemMap() { in GetMemMap() 383 const MemMap* GetMemMap() const { in GetMemMap() 387 MemMap ReleaseMemMap() { in ReleaseMemMap() 393 MemMap&& mem_map, in MemMapSpace() 403 MemMap mem_map_; 459 MemMap&& mem_map, in ContinuousMemMapAllocSpace()
|
D | bump_pointer_space.cc | 30 MemMap mem_map = MemMap::MapAnonymous(name.c_str(), in Create() 43 BumpPointerSpace* BumpPointerSpace::CreateFromMemMap(const std::string& name, MemMap&& mem_map) { in CreateFromMemMap() 49 MemMap::Invalid(), in BumpPointerSpace() 61 BumpPointerSpace::BumpPointerSpace(const std::string& name, MemMap&& mem_map) in BumpPointerSpace()
|
D | zygote_space.h | 34 MemMap&& mem_map, 89 ZygoteSpace(const std::string& name, MemMap&& mem_map, size_t objects_allocated);
|
D | dlmalloc_space.h | 37 static DlMallocSpace* CreateFromMemMap(MemMap&& mem_map, 130 MallocSpace* CreateInstance(MemMap&& mem_map, 156 DlMallocSpace(MemMap&& mem_map,
|
D | malloc_space.h | 118 virtual MallocSpace* CreateInstance(MemMap&& mem_map, 148 MemMap&& mem_map, 158 static MemMap CreateMemMap(const std::string& name,
|
/art/runtime/gc/ |
D | heap_test.cc | 34 MemMap::Init(); in SetUp() 37 reserved_ = MemMap::MapAnonymous("ReserveMap", in SetUp() 50 MemMap reserved_;
|
/art/test/305-other-fault-handler/ |
D | fault_handler.cc | 37 target_map_(MemMap::MapAnonymous("test-305-mmap", in TestFaultHandler() 94 MemMap target_map_;
|
/art/runtime/ |
D | oat_file_manager.h | 40 class MemMap; variable 114 std::vector<MemMap>&& dex_mem_maps, 152 std::vector<MemMap>&& dex_mem_maps,
|
D | elf_file.h | 29 class MemMap; variable 60 /*inout*/MemMap* reservation,
|
D | elf_file_impl.h | 119 /*inout*/MemMap* reservation, 144 bool SetMap(File* file, MemMap&& map, std::string* error_msg); 202 MemMap map_; 204 std::vector<MemMap> segments_;
|