diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-06-26 14:26:52 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-07-03 02:09:39 +0200 |
commit | ee65849bec5da261be90f565bee096abb4117bdd (patch) | |
tree | fba66da461eaba25528a80aa943c3508a25121e8 /vm/vm_map.c | |
parent | dc0c9160173d2a5b40e9d6e29c1800102b17b1ec (diff) | |
download | gnumach-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