mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 22:12:20 +00:00
Kernel: Clear the COW bits when making an AnonymousVMObject volatile
This commit is contained in:
parent
87a22a77e9
commit
101486279f
Notes:
sideshowbarker
2024-07-18 08:20:41 +09:00
Author: https://github.com/awesomekling
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