diff options
author | Collin Fijalkovich <cfijalkovich@google.com> | 2021-03-24 10:17:39 -0700 |
---|---|---|
committer | Collin Fijalkovich <cfijalkovich@google.com> | 2021-05-06 13:15:11 -0700 |
commit | 47d27aa79cc58600c8b500d3d3e3377e643676c3 (patch) | |
tree | b1a5f7ea80747d90a71daec0e255739911481784 /libc/malloc_debug/malloc_debug.cpp | |
parent | c551fc7e7a154847e7ca1d7dfbabd0b03028e4f3 (diff) |
Bionic: Mark PMD aligned text segments huge page eligible
To take advantage of file-backed huge pages for the text segments of key
shared libraries (go/android-hugepages), the dynamic linker must load
candidate ELF files at an appropriately aligned address and mark
executable segments with MADV_HUGEPAGE.
This patches uses segments' p_align values to determine when a file is
PMD aligned (2MB alignment), and performs load operations accordingly.
Bug: 158135888
Test: Verified PMD aligned libraries are backed with huge pages on
supporting kernel versions.
Change-Id: Ia2367fd5652f663d50103e18f7695c59dc31c7b9
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions