Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: simplify large pages mapping code #32396

Commits on Mar 24, 2020

  1. src: simplify large pages mapping code

    * Introduce `OnScopeLeave` handler for cleaning up mmap()ed range(s).
    * Factor out failure scenario at the bottom of the function with
      `fail` label for use with `goto`.
    * Do not allocate temporary range (`nmem`) on FreeBSD, because it is
      not used.
    
    The intention is that the steps involved in re-mapping to large pages
    become more clearly visible.
    
    Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
    Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
    Gabriel Schulhof and bnoordhuis committed Mar 24, 2020
    Copy the full SHA
    470d2d2 View commit details
    Browse the repository at this point in the history