Home
last modified time | relevance | path

Searched refs:MemMap (Results 1 – 25 of 107) sorted by relevance

12345

/art/libartbase/base/
Dmem_map.h58 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 …]
Dmem_map_test.cc55 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 …]
Dmem_map.cc57 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 …]
Dmem_map_unix.cc23 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()
Dzip_archive.cc71 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 …]
Dzip_archive.h40 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,
Dmem_map_windows.cc39 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()
Dmem_map_fuchsia.cc34 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/
Dbitmap.cc30 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()
Dbitmap.h44 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()
Dcard_table.cc67 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/
Dimmune_spaces_test.cc43 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/
Dmem_map_arena_pool.cc41 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/
Djit_memory_region.h149 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_;
Djit_memory_region.cc105 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()
340 const MemMap* const code_pages = GetUpdatableCodeMapping(); in MoreCore()
[all …]
Djit_scoped_code_cache_write.h42 const MemMap* const updatable_pages = region.GetUpdatableCodeMapping(); in ScopedCodeCacheWrite()
51 const MemMap* const updatable_pages = region_.GetUpdatableCodeMapping(); in ~ScopedCodeCacheWrite()
/art/runtime/gc/space/
Dlarge_object_space.h114 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_;
Dmalloc_space.cc47 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()
Dspace.h381 MemMap* GetMemMap() { in GetMemMap()
385 const MemMap* GetMemMap() const { in GetMemMap()
389 MemMap ReleaseMemMap() { in ReleaseMemMap()
395 MemMap&& mem_map, in MemMapSpace()
405 MemMap mem_map_;
460 MemMap&& mem_map, in ContinuousMemMapAllocSpace()
Dbump_pointer_space.cc30 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/
Dheap_test.cc34 MemMap::Init(); in SetUp()
37 reserved_ = MemMap::MapAnonymous("ReserveMap", in SetUp()
50 MemMap reserved_;
/art/runtime/
Doat_file_manager.h40 class MemMap; variable
114 std::vector<MemMap>&& dex_mem_maps,
145 std::vector<MemMap>&& dex_mem_maps,
Delf_file.h29 class MemMap; variable
60 /*inout*/MemMap* reservation,
Delf_file_impl.h119 /*inout*/MemMap* reservation,
144 bool SetMap(File* file, MemMap&& map, std::string* error_msg);
202 MemMap map_;
204 std::vector<MemMap> segments_;
/art/test/305-other-fault-handler/
Dfault_handler.cc37 target_map_(MemMap::MapAnonymous("test-305-mmap", in TestFaultHandler()
94 MemMap target_map_;

12345