aboutsummaryrefslogtreecommitdiff
path: root/x86_64
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-11-27 22:10:10 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-11-27 22:10:10 +0100
commitdf10aa6983e86b688e4a9b4f30db6d07ad540964 (patch)
treeab58cb4e949a1445eb206e438a6746ec9ee1f1e9 /x86_64
parent97314ab115206137018b0cd7196ce404ceee136c (diff)
downloadgnumach-df10aa6983e86b688e4a9b4f30db6d07ad540964.tar.gz
gnumach-df10aa6983e86b688e4a9b4f30db6d07ad540964.tar.bz2
gnumach-df10aa6983e86b688e4a9b4f30db6d07ad540964.zip
vm_wire_all: Fix vm_map_protect case
If a "wire_required" process calls vm_map_protect(0), the memory gets unwired as expected. But if the process then calls vm_map_protect(VM_PROT_READ) again, we need to wire that memory. (This happens to be exactly what glibc does for its heap) This fixes Hurd hangs on lack of memory, during which mach was swapping pieces of mach-defpager out.
Diffstat (limited to 'x86_64')
0 files changed, 0 insertions, 0 deletions