diff options
author | Tom <tomut@yahoo.com> | 2020-09-04 11:47:49 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-01 23:43:44 +0100 |
commit | e21cc4cff63c36917d83730871dfff1a9f0eb927 (patch) | |
tree | 3cadae41c5b4c66de98e9da32b79dbee3cc48c14 /Kernel/VM/Region.h | |
parent | c3451899bcbdb1b268ff862ae37263d6ee99a423 (diff) | |
download | serenity-e21cc4cff63c36917d83730871dfff1a9f0eb927.zip |
Kernel: Remove MAP_PURGEABLE from mmap
This brings mmap more in line with other operating systems. Prior to
this, it was impossible to request memory that was definitely committed,
instead MAP_PURGEABLE would provide a region that was not actually
purgeable, but also not fully committed, which meant that using such memory
still could cause crashes when the underlying pages could no longer be
allocated.
This fixes some random crashes in low-memory situations where non-volatile
memory is mapped (e.g. malloc, tls, Gfx::Bitmap, etc) but when a page in
these regions is first accessed, there is insufficient physical memory
available to commit a new page.
Diffstat (limited to 'Kernel/VM/Region.h')
0 files changed, 0 insertions, 0 deletions