1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

Kernel: Remove 1 level of indirection for AnonymousVMObject CoW bitmaps

Instead of keeping AnonymousVMObject::m_cow_map in an OwnPtr<Bitmap>,
just make the Bitmap a regular value member. This increases the size
of the VMObject by 8 bytes, but removes some of the kmalloc/kfree spam
incurred by sys$fork().
This commit is contained in:
Andreas Kling 2021-03-04 10:05:38 +01:00
parent ddaeb294dc
commit 4515652001
2 changed files with 12 additions and 12 deletions

View file

@ -147,7 +147,7 @@ private:
Vector<PurgeablePageRanges*> m_purgeable_ranges;
size_t m_unused_committed_pages { 0 };
mutable OwnPtr<Bitmap> m_cow_map;
Bitmap m_cow_map;
// We share a pool of committed cow-pages with clones
RefPtr<CommittedCowPages> m_shared_committed_cow_pages;