mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-03 06:15:29 +00:00
We currently overcommit for COW when forking a process and cloning its memory regions. Both the parent and child process share a set of. committed COW pages. If there's COW sharing across more than two processeses within a lineage (e.g parent, child & grandchild), it's possible to exhaust these pages. When the shared set is emptied, the next COW fault in each process must detach from the shared set and fall back to on demand allocation. This patch makes sure that we detach from the shared set once we discover it to be empty (during COW fault handling). This fixes an issue where we'd try to allocate from an exhausted shared set while building GNU binutils inside SerenityOS.
13 KiB
13 KiB