vm: use sparse files to emulate overcommit memory

Fix shm::map_critical page flags.
This commit is contained in:
Nekotekina 2022-08-05 11:34:16 +03:00 committed by Ivan
parent 7ff4509858
commit 7bb2d94e53
3 changed files with 60 additions and 27 deletions

View file

@ -71,6 +71,7 @@ namespace utils
u32 m_flags{};
u64 m_size{};
atomic_t<void*> m_ptr{nullptr};
std::string m_storage;
public:
explicit shm(u64 size, u32 flags = 0);