Skip to content

Add support for growing mapped_region #253

@Lastique

Description

@Lastique

Linux, NetBSD and Solaris have a mremap system call that allows to opportunistically grow or relocate the existing memory mapping. There also seems to be a way to achieve this on Windows, but I'm not familiar with that API.

Please, add support for this functionality (specifically, growing and/or relocating a memory mapping) to the mapped_region class. For example, add a grow_by method that would try to increase the size of the mapped region at the same address and remap to relocate the region at a different address and size. On platforms that don't support this functionality, the new methods would always fail. This would also be indicated at compile time by some library-defined config macro.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions