[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Mach branch, master, updated. v1.8-662-gbdcafee4
From: |
Samuel Thibault |
Subject: |
[SCM] GNU Mach branch, master, updated. v1.8-662-gbdcafee4 |
Date: |
Wed, 5 Jul 2023 14:49:54 -0400 (EDT) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mach".
The branch, master has been updated
via bdcafee412ab6eec58f6b315e16e57fe3dad002f (commit)
from cab23fb54d10843158e874d87dd3725ddbb2b4db (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit bdcafee412ab6eec58f6b315e16e57fe3dad002f
Author: Sergey Bugaev <bugaevc@gmail.com>
Date: Wed Jul 5 17:16:37 2023 +0300
vm: Make vm_object_coalesce return new object and offset
vm_object_coalesce() callers used to rely on the fact that it always
merged the next_object into prev_object, potentially destroying
next_object and leaving prev_object the result of the whole operation.
After ee65849bec5da261be90f565bee096abb4117bdd
"vm: Allow coalescing null object with an internal object", this is no
longer true, since in case of prev_object == VM_OBJECT_NULL and
next_object != VM_OBJECT_NULL, the overall result is next_object, not
prev_object. The current callers are prepared to deal with this since
they handle this case seprately anyway, but the following commit will
introduce another caller that handles both cases in the same code path.
So, declare the way vm_object_coalesce() coalesces the two objects its
implementation detail, and make it return the resulting object and the
offset into it explicitly. This simplifies the callers, too.
Message-Id: <20230705141639.85792-2-bugaevc@gmail.com>
-----------------------------------------------------------------------
Summary of changes:
vm/vm_map.c | 11 ++++++-----
vm/vm_object.c | 53 ++++++++++++++++++++++++++++++++++++++++-------------
vm/vm_object.h | 4 +++-
3 files changed, 49 insertions(+), 19 deletions(-)
hooks/post-receive
--
GNU Mach
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Mach branch, master, updated. v1.8-662-gbdcafee4,
Samuel Thibault <=