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

chore: use memmap2 instead of mapr #1624

Merged
merged 1 commit into from
Aug 22, 2022
Merged

chore: use memmap2 instead of mapr #1624

merged 1 commit into from
Aug 22, 2022

Commits on Aug 22, 2022

  1. chore: use memmap2 instead of mapr

    `memmap2` is maintained and contains all features from `mapr`, so using
    the `mapr` fork of `memmap` is no longer needed.
    
    Here are the changes in detail:
    
     - `map_anon()` in `memmap2` is always `MAP_PRIVATE`, so a call to `private()`
    is no longer needed.
     - using `mlock` is similar to the `MAP_LOCKED` setting, hence it is no longer
       set. In `memmap2` the `mlock()` is just called `lock()`.
     - `MAP_PRIVATE` is done via `map_copy_read_only()`.
    vmx committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    83ae0ab View commit details
    Browse the repository at this point in the history