mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-27 10:55:52 +00:00
When constructing an AnonymousVMObject with the AllocateNow allocation strategy we accidentally allocated the committed pages directly through MemoryManager instead of taking them from our m_unused_physical_pages CommittedPhysicalPageSet, which meant they were counted as allocated in MemoryManager, but were still counted as unallocated in the PageSet, who would then try to uncommit them on destruction, resulting in a failed assertion. To help prevent similar issues in the future a Badge<T> was added to MM::allocate_committed_user_physical_page to prevent allocation of commited pages not via a CommittedPhysicalPageSet.
46 KiB
46 KiB