/art/libartbase/base/ |
D | mem_map.h | 58 class MemMap { 63 MemMap() {} in MemMap() function 66 static MemMap Invalid() { in Invalid() 67 return MemMap(); in Invalid() 70 MemMap(MemMap&& other) noexcept REQUIRES(!MemMap::mem_maps_lock_); 71 MemMap& operator=(MemMap&& other) noexcept REQUIRES(!MemMap::mem_maps_lock_) { 78 ~MemMap() REQUIRES(!MemMap::mem_maps_lock_); 81 void swap(MemMap& other); 114 bool ReplaceWith(/*in-out*/MemMap* source, /*out*/std::string* error); 131 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 | 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() 89 return MemMap::Invalid(); in ExtractToMemMap() 104 MemMap ZipEntry::MapDirectlyFromFile(const char* zip_filename, std::string* error_msg) { in MapDirectlyFromFile() 121 return MemMap::Invalid(); in MapDirectlyFromFile() 129 return MemMap::Invalid(); in MapDirectlyFromFile() 142 MemMap map = in MapDirectlyFromFile() 143 MemMap::MapFile(GetUncompressedLength(), // Byte count in MapDirectlyFromFile() 198 MemMap ZipEntry::MapDirectlyOrExtract(const char* zip_filename, in MapDirectlyOrExtract() [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.h | 40 class MemMap; variable 49 MemMap ExtractToMemMap(const char* zip_filename, 62 MemMap MapDirectlyFromFile(const char* zip_filename, /*out*/std::string* error_msg); 65 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 FakeImageSpace(MemMap&& map, in FakeImageSpace() 46 MemMap&& oat_map) in FakeImageSpace() 59 MemMap oat_map_; 84 MemMap* image_reservation, in CreateImageSpace() 85 MemMap* oat_reservation) { in CreateImageSpace() 89 MemMap image_map = MemMap::MapAnonymous("FakeImageSpace", in CreateImageSpace() 102 MemMap oat_map = MemMap::MapAnonymous("OatMap", in CreateImageSpace() 196 MemMap reservation = MemMap::MapAnonymous("reserve", in TEST_F() 202 MemMap image_reservation = reservation.TakeReservedMemory(kImageSize); in TEST_F() 259 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/jit/ |
D | jit_memory_region.h | 149 const MemMap* GetExecPages() const { in GetExecPages() 192 T* TranslateAddress(T* src_ptr, const MemMap& src, const MemMap& dst) { in TranslateAddress() 198 const MemMap* GetUpdatableCodeMapping() const { in GetUpdatableCodeMapping() 208 const MemMap* GetWritableDataMapping() const { in GetWritableDataMapping() 262 MemMap data_pages_; 266 MemMap writable_data_pages_; 269 MemMap exec_pages_; 273 MemMap non_exec_pages_;
|
D | jit_memory_region.cc | 105 MemMap data_pages; in Initialize() 135 data_pages = MemMap::MapFile( in Initialize() 160 data_pages = MemMap::MapAnonymous( in Initialize() 175 MemMap exec_pages; in Initialize() 176 MemMap non_exec_pages; in Initialize() 177 MemMap writable_data_pages; in Initialize() 201 non_exec_pages = MemMap::MapFile(exec_capacity, in Initialize() 221 writable_data_pages = MemMap::MapFile(data_capacity, in Initialize() 279 MemMap* code_heap = nullptr; in Initialize() 339 const MemMap* const code_pages = GetUpdatableCodeMapping(); in MoreCore() [all …]
|
D | jit_scoped_code_cache_write.h | 43 const MemMap* const updatable_pages = region.GetUpdatableCodeMapping(); in ScopedCodeCacheWrite() 54 const MemMap* const updatable_pages = region_.GetUpdatableCodeMapping(); in ~ScopedCodeCacheWrite()
|
/art/runtime/gc/space/ |
D | large_object_space.h | 114 virtual void ForEachMemMap(std::function<void(const MemMap&)> func) const = 0; 165 void ForEachMemMap(std::function<void(const MemMap&)> func) const override REQUIRES(!lock_); 170 MemMap mem_map; 200 void ForEachMemMap(std::function<void(const MemMap&)> func) const override REQUIRES(!lock_); 204 FreeListSpace(const std::string& name, MemMap&& mem_map, uint8_t* begin, uint8_t* end); 234 MemMap mem_map_; 236 MemMap allocation_info_map_;
|
D | malloc_space.cc | 47 MemMap&& mem_map, in MallocSpace() 82 MemMap MallocSpace::CreateMemMap(const std::string& name, in CreateMemMap() 95 return MemMap::Invalid(); in CreateMemMap() 101 return MemMap::Invalid(); in CreateMemMap() 109 MemMap mem_map = MemMap::MapAnonymous(name.c_str(), in CreateMemMap() 212 MemMap mem_map = GetMemMap()->RemapAtEnd( in CreateZygoteSpace()
|
D | space.h | 384 MemMap* GetMemMap() { in GetMemMap() 388 const MemMap* GetMemMap() const { in GetMemMap() 392 MemMap ReleaseMemMap() { in ReleaseMemMap() 398 MemMap&& mem_map, in MemMapSpace() 408 MemMap mem_map_; 463 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()
|
/art/runtime/gc/ |
D | heap_test.cc | 34 MemMap::Init(); in SetUp() 37 reserved_ = MemMap::MapAnonymous("ReserveMap", in SetUp() 50 MemMap reserved_;
|
/art/runtime/ |
D | oat_file_manager.h | 41 class MemMap; variable 112 std::vector<MemMap>&& dex_mem_maps, 142 std::vector<MemMap>&& dex_mem_maps,
|
D | elf_file_impl.h | 123 /*inout*/MemMap* reservation, 137 bool SetMap(File* file, MemMap&& map, std::string* error_msg); 195 MemMap map_; 197 std::vector<MemMap> segments_;
|
D | elf_file.h | 29 class MemMap; variable 60 /*inout*/MemMap* reservation,
|
/art/test/305-other-fault-handler/ |
D | fault_handler.cc | 37 target_map_(MemMap::MapAnonymous("test-305-mmap", in TestFaultHandler() 94 MemMap target_map_;
|