]> sourceware.org Git - glibc.git/commit
mach: Use PAGE_SIZE
authorSergey Bugaev <bugaevc@gmail.com>
Sat, 18 Feb 2023 20:37:14 +0000 (23:37 +0300)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 19 Feb 2023 23:46:36 +0000 (00:46 +0100)
commitbe318c0f38b6b72a0716edce818b755411e75600
tree76b241932008ccd83f8b8e067a11c99a36b93846
parent90ab316b02d496cfaf09396fcc0c9bc58f15a61c
mach: Use PAGE_SIZE

The PAGE_SIZE from the Mach headers statically defines the machine's
page size. There's no need to query it dynamically; furthermore, the
implementation of the vm_statistics () RPC unconditionally fills in

pagesize = PAGE_SIZE;

Not doing the extra RPC shaves off 2 RPCs from the start-up of every
process!

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230218203717.373211-7-bugaevc@gmail.com>
mach/mach_init.c
This page took 0.039934 seconds and 5 git commands to generate.