Home
last modified time | relevance | path

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

123

/art/runtime/
Dmem_map_test.cc29 static uint8_t* BaseBegin(MemMap* mem_map) { in BaseBegin()
32 static size_t BaseSize(MemMap* mem_map) { in BaseSize()
41 MemMap* m0 = MemMap::MapAnonymous("MemMapTest_RemapAtEndTest_map0", in RemapAtEndTest()
57 MemMap* m1 = m0->RemapAtEnd(base0 + page_size, in RemapAtEndTest()
92 MemMap::Init(); in CommonInit()
97 return MemMap::next_mem_pos_; in GetLinearScanPos()
132 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F()
141 map.reset(MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F()
156 std::unique_ptr<MemMap> map(MemMap::MapAnonymous("MapAnonymousEmpty", in TEST_F()
173 std::unique_ptr<MemMap> map0(MemMap::MapAnonymous("MapAnonymous0", in TEST_F()
[all …]
Dmem_map.h53 class MemMap {
64 static MemMap* MapAnonymous(const char* ashmem_name, uint8_t* addr, size_t byte_count, int prot,
71 static MemMap* MapDummy(const char* name, uint8_t* addr, size_t byte_count);
77 static MemMap* MapFile(size_t byte_count, int prot, int flags, int fd, off_t start, in MapFile()
90 static MemMap* MapFileAtAddress(uint8_t* addr, size_t byte_count, int prot, int flags, int fd,
95 ~MemMap() LOCKS_EXCLUDED(Locks::mem_maps_lock_);
141 MemMap* RemapAtEnd(uint8_t* new_end, const char* tail_name, int tail_prot,
144 static bool CheckNoGaps(MemMap* begin_map, MemMap* end_map)
149 typedef AllocationTrackingMultiMap<void*, MemMap*, kAllocatorTagMaps> Maps;
155 MemMap(const std::string& name, uint8_t* begin, size_t size, void* base_begin, size_t base_size,
[all …]
Dmem_map.cc69 std::ostream& operator<<(std::ostream& os, const MemMap::Maps& mem_maps) { in operator <<()
73 MemMap* map = it->second; in operator <<()
80 MemMap::Maps* MemMap::maps_ = nullptr;
137 uintptr_t MemMap::next_mem_pos_ = GenerateNextMemPos();
259 MemMap* MemMap::MapAnonymous(const char* name, uint8_t* expected_ptr, size_t byte_count, int prot, in MapAnonymous()
265 return new MemMap(name, nullptr, 0, nullptr, 0, prot, false); in MapAnonymous()
438 return new MemMap(name, reinterpret_cast<uint8_t*>(actual), byte_count, actual, in MapAnonymous()
442 MemMap* MemMap::MapDummy(const char* name, uint8_t* addr, size_t byte_count) { in MapDummy()
444 return new MemMap(name, nullptr, 0, nullptr, 0, 0, false); in MapDummy()
447 return new MemMap(name, addr, byte_count, addr, page_aligned_byte_count, 0, true /* reuse */); in MapDummy()
[all …]
Dzip_archive.cc53 MemMap* ZipEntry::ExtractToMemMap(const char* zip_filename, const char* entry_filename, in ExtractToMemMap()
58 std::unique_ptr<MemMap> map(MemMap::MapAnonymous(name.c_str(), in ExtractToMemMap()
Dzip_archive.h35 class MemMap; variable
40 MemMap* ExtractToMemMap(const char* zip_filename, const char* entry_filename,
Delf_file_impl.h134 bool SetMap(MemMap* map, std::string* error_msg);
192 std::unique_ptr<MemMap> map_;
194 std::vector<MemMap*> segments_;
/art/runtime/gc/accounting/
Dbitmap.cc27 Bitmap* Bitmap::CreateFromMemMap(MemMap* mem_map, size_t num_bits) { in CreateFromMemMap()
32 Bitmap::Bitmap(MemMap* mem_map, size_t bitmap_size) in Bitmap()
43 MemMap* Bitmap::AllocateMemMap(const std::string& name, size_t num_bits) { in AllocateMemMap()
47 std::unique_ptr<MemMap> mem_map(MemMap::MapAnonymous(name.c_str(), nullptr, bitmap_size, in AllocateMemMap()
89 MemMap* mem_map, uintptr_t begin, size_t num_bits) { in CreateFromMemMap()
Dbitmap.h32 class MemMap; variable
46 static Bitmap* CreateFromMemMap(MemMap* mem_map, size_t num_bits);
105 Bitmap(MemMap* mem_map, size_t bitmap_size);
109 static MemMap* AllocateMemMap(const std::string& name, size_t num_bits);
115 std::unique_ptr<MemMap> mem_map_;
133 static MemoryRangeBitmap* CreateFromMemMap(MemMap* mem_map, uintptr_t cover_begin,
181 MemoryRangeBitmap(MemMap* mem_map, uintptr_t begin, size_t num_bits) in MemoryRangeBitmap()
Dcard_table.h27 class MemMap; variable
132 CardTable(MemMap* begin, uint8_t* biased_begin, size_t offset);
143 std::unique_ptr<MemMap> mem_map_;
Dspace_bitmap.h35 class MemMap; variable
53 static SpaceBitmap* CreateFromMemMap(const std::string& name, MemMap* mem_map,
198 SpaceBitmap(const std::string& name, MemMap* mem_map, uintptr_t* bitmap_begin, size_t bitmap_size,
214 std::unique_ptr<MemMap> mem_map_;
Dread_barrier_table.h40 MemMap* mem_map = MemMap::MapAnonymous("read barrier table", nullptr, capacity, in ReadBarrierTable()
112 std::unique_ptr<MemMap> mem_map_;
Dcard_table.cc64 std::unique_ptr<MemMap> mem_map( in Create()
65 MemMap::MapAnonymous("card table", nullptr, capacity + 256, PROT_READ | PROT_WRITE, in Create()
90 CardTable::CardTable(MemMap* mem_map, uint8_t* biased_begin, size_t offset) in CardTable()
/art/patchoat/
Dpatchoat.h65 PatchOat(InstructionSet isa, MemMap* image, gc::accounting::ContinuousSpaceBitmap* bitmap, in PatchOat()
66 MemMap* heap, off_t delta, TimingLogger* timings) in PatchOat()
69 PatchOat(InstructionSet isa, ElfFile* oat_file, MemMap* image, in PatchOat()
70 gc::accounting::ContinuousSpaceBitmap* bitmap, MemMap* heap, off_t delta, in PatchOat()
192 const MemMap* const image_;
196 const MemMap* const heap_;
/art/runtime/gc/space/
Dspace.h380 MemMap* GetMemMap() { in GetMemMap()
384 const MemMap* GetMemMap() const { in GetMemMap()
388 MemMap* ReleaseMemMap() { in ReleaseMemMap()
393 …MemMapSpace(const std::string& name, MemMap* mem_map, uint8_t* begin, uint8_t* end, uint8_t* limit, in MemMapSpace()
400 std::unique_ptr<MemMap> mem_map_;
449 ContinuousMemMapAllocSpace(const std::string& name, MemMap* mem_map, uint8_t* begin, in ContinuousMemMapAllocSpace()
Dmalloc_space.cc38 MallocSpace::MallocSpace(const std::string& name, MemMap* mem_map, in MallocSpace()
68 MemMap* MallocSpace::CreateMemMap(const std::string& name, size_t starting_size, size_t* initial_si… in CreateMemMap()
92 MemMap* mem_map = MemMap::MapAnonymous(name.c_str(), requested_begin, *capacity, in CreateMemMap()
192 std::unique_ptr<MemMap> mem_map(GetMemMap()->RemapAtEnd(End(), alloc_space_name, in CreateZygoteSpace()
Dlarge_object_space.h143 MemMap* mem_map;
174 FreeListSpace(const std::string& name, MemMap* mem_map, uint8_t* begin, uint8_t* end);
202 std::unique_ptr<MemMap> mem_map_;
204 std::unique_ptr<MemMap> allocation_info_map_;
Dzygote_space.h33 static ZygoteSpace* Create(const std::string& name, MemMap* mem_map,
88 ZygoteSpace(const std::string& name, MemMap* mem_map, size_t objects_allocated);
Ddlmalloc_space.h37 static DlMallocSpace* CreateFromMemMap(MemMap* mem_map, const std::string& name,
121 MallocSpace* CreateInstance(MemMap* mem_map, const std::string& name, void* allocator,
142 DlMallocSpace(MemMap* mem_map, size_t initial_size, const std::string& name, void* mspace,
Dmalloc_space.h127 virtual MallocSpace* CreateInstance(MemMap* mem_map, const std::string& name, void* allocator,
151 MallocSpace(const std::string& name, MemMap* mem_map, uint8_t* begin, uint8_t* end,
155 static MemMap* CreateMemMap(const std::string& name, size_t starting_size, size_t* initial_size,
Dbump_pointer_space.cc31 std::unique_ptr<MemMap> mem_map(MemMap::MapAnonymous(name.c_str(), requested_begin, capacity, in Create()
42 BumpPointerSpace* BumpPointerSpace::CreateFromMemMap(const std::string& name, MemMap* mem_map) { in CreateFromMemMap()
56 BumpPointerSpace::BumpPointerSpace(const std::string& name, MemMap* mem_map) in BumpPointerSpace()
Dzygote_space.cc43 ZygoteSpace* ZygoteSpace::Create(const std::string& name, MemMap* mem_map, in Create()
66 ZygoteSpace::ZygoteSpace(const std::string& name, MemMap* mem_map, size_t objects_allocated) in ZygoteSpace()
Dlarge_object_space.cc133 MemMap* mem_map = MemMap::MapAnonymous("large object space allocation", nullptr, num_bytes, in Alloc()
193 MemMap* mem_map = it->second.mem_map; in Free()
229 MemMap* mem_map = pair.second.mem_map; in Walk()
352 MemMap* mem_map = MemMap::MapAnonymous(name.c_str(), requested_begin, size, in Create()
358 FreeListSpace::FreeListSpace(const std::string& name, MemMap* mem_map, uint8_t* begin, uint8_t* end) in FreeListSpace()
368 MemMap::MapAnonymous("large object free list space allocation info map", in FreeListSpace()
Drosalloc_space.h44 static RosAllocSpace* CreateFromMemMap(MemMap* mem_map, const std::string& name,
114 MallocSpace* CreateInstance(MemMap* mem_map, const std::string& name, void* allocator,
148 RosAllocSpace(MemMap* mem_map, size_t initial_size, const std::string& name,
/art/runtime/jit/
Djit_code_cache.cc33 MemMap* map = MemMap::MapAnonymous("jit-code-cache", nullptr, capacity, in Create()
44 JitCodeCache::JitCodeCache(MemMap* mem_map) in JitCodeCache()
Djit_code_cache.h105 explicit JitCodeCache(MemMap* code_mem_map);
115 std::unique_ptr<MemMap> mem_map_;

123