mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Kernel: Clear the COW bits when making an AnonymousVMObject volatile
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user