mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-09 08:32:04 +02:00
AnonymousVMObject::try_clone() computed how many shared cow pages to commit by counting all VMObject pages that were not shared_zero_pages. This means that lazy_committed_pages were also being included in the count. This is a problem because the page fault handling code for lazy_committed_pages does not allocate from m_shared_committed_cow_pages. So more pages than necessary were being committed. This fixes this overcommitting problem by skipping lazy_committed_pages when counting how many pages to commit.
15 KiB
15 KiB