fast_io
fast_io copied to clipboard
Issue: native_file_loader fails to load file which is above the size of physical memory. Todo: Add a flag to file_loaders for MMAP flags
It has been reported that native_file_loader failed to load file over the size of physical memory since it uses MMAP_PRIVATE + PROT_WRITE flags. This will force linux kernel to fail if the file size is above the size of physical memory.
It should have some new flags to allow MMAP_SHARED + PROT_READ flags or even PROT_EXEC to allow users to create things like shared libraries manually with the native_file loader.