-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Add memfd_create to os module #71023
Comments
Add memfd_create() and constants MFD_ALLOW_SEALING, MFD_CLOEXEC to the os module. A glibc wrapper for memfd_create() is not available yet but the interface has been standardized. http://man7.org/linux/man-pages/man2/memfd_create.2.html |
Maybe useful at mmapmodule.c replacing
tagname is unused at UNIX version of new_mmap_object() so if provided something like could be added for Linux only |
https://buildbot.python.org/all/#builders/99/builds/2738 is failing because some HUGE TLB constants are not defined on Gentoo. |
Testsuite breakage: https://bugs.python.org/issue37098 |
Davin, Pierre, it looks like this could simplify lifetime management of shared memory pools, what do you think? |
From a quick skim at the man page of memfd_create, this looks promising. |
It seems like this issue can now be closed, no? |
Yes, the feature is implemented and buildbots are green. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: