mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-29 02:50:26 +00:00
Kernel: Copy the "purgeable" flag when cloning AnonymousVMObject
This commit is contained in:
parent
7f7ba726f0
commit
363a901603
Notes:
sideshowbarker
2024-07-18 07:41:12 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/363a9016037
1 changed files with 1 additions and 0 deletions
|
@ -142,6 +142,7 @@ AnonymousVMObject::AnonymousVMObject(AnonymousVMObject const& other)
|
|||
, m_unused_committed_pages(other.m_unused_committed_pages)
|
||||
, m_cow_map() // do *not* clone this
|
||||
, m_shared_committed_cow_pages(other.m_shared_committed_cow_pages) // share the pool
|
||||
, m_purgeable(other.m_purgeable)
|
||||
{
|
||||
// We can't really "copy" a spinlock. But we're holding it. Clear in the clone
|
||||
VERIFY(other.m_lock.is_locked());
|
||||
|
|
Loading…
Reference in a new issue