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

Windows equivalent of "MAP_NORESERVE" ? #10

Open
PierUgit opened this issue Jun 8, 2024 · 0 comments
Open

Windows equivalent of "MAP_NORESERVE" ? #10

PierUgit opened this issue Jun 8, 2024 · 0 comments
Labels
question Further information is requested

Comments

@PierUgit
Copy link
Owner

PierUgit commented Jun 8, 2024

In the posix case, the mappings are created with the MAP_NORESERVE flag. As far as I can understand it (but I'm definitely not sure to understand it), it corresponds to a lazy allocation: the pages stay virtual until we touch them.

I'm not sure what is the equivalent in the Windows case. The CreateFileMappingA() function has the following flags: SEC_COMMIT and SEC_RESERVE, but they have apparently an effect for anonymous mappings only.

@PierUgit PierUgit added the question Further information is requested label Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant