mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
Kernel: Preserve internal state in cloned PurgeableVMObjects
When cloning a purgeable memory region (which happens on fork), we need to preserve the "was purged" and "volatile" state of the original region, or they will always appear as non-volatile and unpurged regions in the child process. Fixes #3374.
This commit is contained in:
parent
a56360f787
commit
171868e4f7
1 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,8 @@ PurgeableVMObject::PurgeableVMObject(size_t size)
|
|||
|
||||
PurgeableVMObject::PurgeableVMObject(const PurgeableVMObject& other)
|
||||
: AnonymousVMObject(other)
|
||||
, m_was_purged(other.m_was_purged)
|
||||
, m_volatile(other.m_volatile)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue