1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

Kernel: If a VMObject is shared, broadcast page remappings

If we remap pages (e.g. lazy allocation) inside a VMObject that is
shared among more than one region, broadcast it to any other region
that may be mapping the same page.
This commit is contained in:
Tom 2021-01-02 12:03:14 -07:00 committed by Andreas Kling
parent e3190bd144
commit c630669304
5 changed files with 117 additions and 18 deletions

View file

@ -46,6 +46,7 @@ VMObject::VMObject(size_t size)
VMObject::~VMObject()
{
MM.unregister_vmobject(*this);
ASSERT(m_regions_count.load(AK::MemoryOrder::memory_order_relaxed) == 0);
}
}