Lines Matching refs:MemMap
62 std::ostream& operator<<(std::ostream& os, const MemMap::Maps& mem_maps) {
63 os << "MemMap:" << std::endl;
66 MemMap* map = it->second;
73 MemMap::Maps* MemMap::maps_ = nullptr;
130 uintptr_t MemMap::next_mem_pos_ = GenerateNextMemPos();
239 MemMap* MemMap::MapAnonymous(const char* name, byte* expected_ptr, size_t byte_count, int prot,
242 return new MemMap(name, nullptr, 0, nullptr, 0, prot, false);
382 return new MemMap(name, reinterpret_cast<byte*>(actual), byte_count, actual,
386 MemMap* MemMap::MapFileAtAddress(byte* expected_ptr, size_t byte_count, int prot, int flags, int fd,
412 return new MemMap(filename, nullptr, 0, nullptr, 0, prot, false);
446 return new MemMap(filename, actual + page_offset, byte_count, actual, page_aligned_byte_count,
450 MemMap::~MemMap() {
473 CHECK(found) << "MemMap not found";
476 MemMap::MemMap(const std::string& name, byte* begin, size_t size, void* base_begin,
496 MemMap* MemMap::RemapAtEnd(byte* new_end, const char* tail_name, int tail_prot,
510 return new MemMap(tail_name, nullptr, 0, nullptr, 0, tail_prot, false);
562 return new MemMap(tail_name, actual, tail_size, actual, tail_base_size, tail_prot, false);
565 void MemMap::MadviseDontNeedAndZero() {
577 bool MemMap::Protect(int prot) {
593 bool MemMap::CheckNoGaps(MemMap* begin_map, MemMap* end_map) {
600 MemMap* map = begin_map;
602 MemMap* next_map = GetLargestMemMapAt(map->BaseEnd());
612 void MemMap::DumpMaps(std::ostream& os) {
617 void MemMap::DumpMapsLocked(std::ostream& os) {
621 bool MemMap::HasMemMap(MemMap* map) {
632 MemMap* MemMap::GetLargestMemMapAt(void* address) {
634 MemMap* largest_map = nullptr;
638 MemMap* map = it->second;
648 void MemMap::Init() {
651 // dex2oat calls MemMap::Init twice since its needed before the runtime is created.
656 void MemMap::Shutdown() {
662 std::ostream& operator<<(std::ostream& os, const MemMap& mem_map) {
663 os << StringPrintf("[MemMap: %p-%p prot=0x%x %s]",