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

Use NonNull<u8> in MmapRegionBuilder for saving space #224

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 2, 2023

  1. Use NonNull<u8> in MmapRegionBuilder for saving space

    Updates the `raw_ptr` field in `MmapRegionBuilder` (mmap_unix.rs) from
    `Option<*mut u8>` to `Option<NonNull<u8>>`. This modification saves
    8 bytes on x86-64 systems, for example.
    
    The public API and functionality remain unchanged.
    
    Signed-off-by: Fuu <[email protected]>
    FuuuOverclocking authored and jiangliu committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    3e475d6 View commit details
    Browse the repository at this point in the history