mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +00:00
Kernel: Copy the "purgeable" flag when cloning AnonymousVMObject
This commit is contained in:
parent
7f7ba726f0
commit
363a901603
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…
Add table
Add a link
Reference in a new issue