Home
last modified time | relevance | path

Searched refs:mmap_ptr (Results 1 – 1 of 1) sorted by relevance

/bionic/linker/
Dlinker_phdr.cpp590 void* mmap_ptr = mmap(nullptr, size, PROT_NONE, mmap_flags, -1, 0); in ReserveWithAlignmentPadding() local
591 if (mmap_ptr == MAP_FAILED) { in ReserveWithAlignmentPadding()
594 return mmap_ptr; in ReserveWithAlignmentPadding()
609 uint8_t* mmap_ptr = in ReserveWithAlignmentPadding() local
611 if (mmap_ptr == MAP_FAILED) { in ReserveWithAlignmentPadding()
615 size_t first_byte = reinterpret_cast<size_t>(align_up(mmap_ptr, mapping_align)); in ReserveWithAlignmentPadding()
616 size_t last_byte = reinterpret_cast<size_t>(align_down(mmap_ptr + mmap_size, mapping_align) - 1); in ReserveWithAlignmentPadding()
621 munmap(mmap_ptr, mmap_size); in ReserveWithAlignmentPadding()
626 mmap_ptr = reinterpret_cast<uint8_t*>(mmap(nullptr, mmap_size, PROT_NONE, mmap_flags, -1, 0)); in ReserveWithAlignmentPadding()
627 if (mmap_ptr == MAP_FAILED) { in ReserveWithAlignmentPadding()
[all …]