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  70cfee5bf87df2ca079e2bc4adec0e28241d760c (commit)
       via  008ab30bacb31a029fb50a9d3165b0960be2c588 (commit)
       via  2e424b222d7de61d4886664e796faa0ba218fa85 (commit)
       via  da3b48ebf35b524c23b651f0af4eb97d3c2348ef (commit)
      from  f41f8801fbbfc794f63bdee293552d7ec8f74847 (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 70cfee5bf87df2ca079e2bc4adec0e28241d760c
Author: Milos Nikic <[email protected]>
Date:   Sun Mar 1 22:23:09 2026 -0800

    gnumach: kern/ipc_host: add branch prediction hints to port conversions
    
    The convert_port_to_* functions are heavily utilized fast paths.
    Add `likely(IP_VALID(port))` hints to optimize the instruction
    cache for the standard happy path where the provided IPC port
    is valid.
    
    Also added a few targeted branch hints to the active/null checks
    in processor_set_default and ipc_pset_enable.
    
    Tested by recompiling and booting inside QEMU on x86_64.
    
    * kern/ipc_host.c (ipc_pset_enable, processor_set_default,
      convert_port_to_host, convert_port_to_host_priv,
      convert_port_to_processor, convert_port_to_pset,
      convert_port_to_pset_name): Use likely and unlikely macros.
    Message-ID: <[email protected]>

commit 008ab30bacb31a029fb50a9d3165b0960be2c588
Author: Milos Nikic <[email protected]>
Date:   Sun Mar 1 21:37:58 2026 -0800

    gnumach: kern/ipc_kobject: add likely/unlikely hints
    
    This is an extremely hot path. Add branch prediction hints to the
    error handling and exceptional states to try and squeeze out any
    i-cache benefits that GCC can provide.
    
    Tested by recompiling and booting inside QEMU on x86_64.
    
    * kern/ipc_kobject.c (ipc_kobject_server): Use likely and unlikely macros.
    Message-ID: <[email protected]>

commit 2e424b222d7de61d4886664e796faa0ba218fa85
Author: Milos Nikic <[email protected]>
Date:   Sun Mar 1 21:04:44 2026 -0800

    kern/rbtree.c use macros.h
    
    And stop redefining macros.
    Test:
    Inside qemu on x86_64 build works without issues.
    Message-ID: <[email protected]>

commit da3b48ebf35b524c23b651f0af4eb97d3c2348ef
Author: Milos Nikic <[email protected]>
Date:   Sun Mar 1 20:49:19 2026 -0800

    gnumach: kern/slab: Remove redundant macro definitions
    
    All of these utility macros are already provided by <kern/macros.h>,
    which is included just a few lines above.
    
    Tested by recompiling and booting inside QEMU on x86_64 without issues.
    
    * kern/slab.c (P2ALIGNED, ISP2, P2ALIGN, P2ROUND, P2END, likely, unlikely):
      Remove redundant macro definitions.
    Message-ID: <[email protected]>

-----------------------------------------------------------------------

Summary of changes:
 kern/ipc_host.c    | 15 ++++++++-------
 kern/ipc_kobject.c | 12 +++++++-----
 kern/rbtree.c      |  3 +--
 kern/slab.c        | 11 -----------
 4 files changed, 16 insertions(+), 25 deletions(-)


hooks/post-receive
-- 
GNU Mach

Reply via email to