1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:48:11 +00:00

Kernel: Clear the COW bits when making an AnonymousVMObject volatile

This commit is contained in:
Andreas Kling 2021-07-26 00:27:42 +02:00
parent 87a22a77e9
commit 101486279f

View file

@ -224,6 +224,9 @@ KResult AnonymousVMObject::set_volatile(bool is_volatile, bool& was_purged)
m_shared_committed_cow_pages = nullptr;
if (!m_cow_map.is_null())
m_cow_map = {};
m_volatile = true;
m_was_purged = false;
return KSuccess;