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:
parent
87a22a77e9
commit
101486279f
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue