summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-30 15:12:54 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-31 11:22:53 +0200
commit363a90160378705d96fdaf1d99542774a0efa704 (patch)
tree6797e89dd86dfb1dcf131f6a7e297addfff591d3 /Kernel
parent7f7ba726f019744fe78bf01e48645f31cb1a4f78 (diff)
downloadserenity-363a90160378705d96fdaf1d99542774a0efa704.zip
Kernel: Copy the "purgeable" flag when cloning AnonymousVMObject
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/VM/AnonymousVMObject.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/VM/AnonymousVMObject.cpp b/Kernel/VM/AnonymousVMObject.cpp
index 2700590f43..522f27a521 100644
--- a/Kernel/VM/AnonymousVMObject.cpp
+++ b/Kernel/VM/AnonymousVMObject.cpp
@@ -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());