b94221f3b2
This reverts hrev54120 and instead adds the commonly supported MAP_NORESERVE flag to request overcommit. Using PROT_NONE for overcommit is problematic as the protection of individual pages can still be changed via mprotect to make them accessible, but that won't change the commitment. An application using such a pattern may then unexpectedly run into out of memory conditions on random writes into the address space. With MAP_NORESERVE the overcommit can explicitly be requested by applications that want to reserve address space without producing memory pressure. Change-Id: Id213d2245c5e23103e8e0857f7902e0cd8a2c65d Reviewed-on: https://review.haiku-os.org/c/haiku/+/2611 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com> |
||
---|---|---|
.. | ||
build | ||
compatibility | ||
config | ||
cpp | ||
glibc | ||
libs | ||
os | ||
posix | ||
private | ||
tools |