Home
last modified time | relevance | path

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

1234

/art/libartbase/base/
Dmem_map.h59 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 …]
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()
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 …]
Dzip_archive.h40 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,
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 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/
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/gc/space/
Dlarge_object_space.h113 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_;
Dmalloc_space.cc47 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()
Dspace.h379 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()
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()
Dzygote_space.h34 MemMap&& mem_map,
89 ZygoteSpace(const std::string& name, MemMap&& mem_map, size_t objects_allocated);
Ddlmalloc_space.h37 static DlMallocSpace* CreateFromMemMap(MemMap&& mem_map,
130 MallocSpace* CreateInstance(MemMap&& mem_map,
156 DlMallocSpace(MemMap&& mem_map,
Dmalloc_space.h118 virtual MallocSpace* CreateInstance(MemMap&& mem_map,
148 MemMap&& mem_map,
158 static MemMap CreateMemMap(const std::string& name,
/art/runtime/gc/
Dheap_test.cc34 MemMap::Init(); in SetUp()
37 reserved_ = MemMap::MapAnonymous("ReserveMap", in SetUp()
50 MemMap reserved_;
/art/test/305-other-fault-handler/
Dfault_handler.cc37 target_map_(MemMap::MapAnonymous("test-305-mmap", in TestFaultHandler()
94 MemMap target_map_;
/art/runtime/
Doat_file_manager.h40 class MemMap; variable
114 std::vector<MemMap>&& dex_mem_maps,
152 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_;

1234