mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00

Memory for memfd files isn't subject to any file size limit, unlike named files in /dev/shm, and is documented as being handled similarly to anonymous mmap for accounting / resource management purposes. Therefore, there isn't any need to pre-commit the memory with posix_fallocate in that case. Differential Revision: https://phabricator.services.mozilla.com/D121818