Skip to content

Support Mmap*::lock on Windows #127

@DrChat

Description

@DrChat

Windows supports locking virtual memory into physical memory via the VirtualLock function (and conversely VirtualUnlock).

One crucial difference from Unix is that you must first ensure that the process working set size is large enough to accommodate the memory region via SetProcessWorkingSetSize.
The easiest solution here would be to just leave it up to callers to configure the working set size (and giving them a reminder to do so in the documentation).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions