aboutsummaryrefslogtreecommitdiff
path: root/vm/vm_map.c
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-06-26 14:26:52 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-07-03 02:09:39 +0200
commitee65849bec5da261be90f565bee096abb4117bdd (patch)
treefba66da461eaba25528a80aa943c3508a25121e8 /vm/vm_map.c
parentdc0c9160173d2a5b40e9d6e29c1800102b17b1ec (diff)
downloadgnumach-ee65849bec5da261be90f565bee096abb4117bdd.tar.gz
gnumach-ee65849bec5da261be90f565bee096abb4117bdd.tar.bz2
gnumach-ee65849bec5da261be90f565bee096abb4117bdd.zip
vm: Allow coalescing null object with an internal object
Previously, vm_object_coalesce would only succeed with next_object being VM_OBJECT_NULL (and with the previous patch, with the two object references pointing to the same object). This patch additionally allows the inverse: prev_object being VM_OBJECT_NULL and next_object being some internal VM object that we have not created a pager port for, provided the offset of the existing mapping in the object allows for placing the new mapping before it. This is not used anywhere at the moment (the only caller, vm_map_enter, ensures that next_object is either VM_OBJECT_NULL or an object that has a pager port), but it will get used with the next patch. Message-Id: <20230626112656.435622-4-bugaevc@gmail.com>
Diffstat (limited to 'vm/vm_map.c')
0 files changed, 0 insertions, 0 deletions