Page MenuHomeFreeBSD

Micro-optimize pmap_remove_pages() on amd64 and arm64
ClosedPublic

Authored by alc on Jul 13 2021, 12:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 24, 3:58 AM
Unknown Object (File)
Thu, Oct 16, 5:23 AM
Unknown Object (File)
Thu, Oct 16, 5:23 AM
Unknown Object (File)
Thu, Oct 16, 5:23 AM
Unknown Object (File)
Wed, Oct 15, 6:13 PM
Unknown Object (File)
Sep 19 2025, 11:27 PM
Unknown Object (File)
Sep 3 2025, 6:46 AM
Unknown Object (File)
Aug 27 2025, 11:42 PM
Subscribers

Details

Summary

Reduce the live ranges for three variables so that they do not span the call to PHYS_TO_VM_PAGE(). This enables the compiler to generate slightly smaller machine code. Specifically, the machine code is 64 and 68 bytes smaller on amd64 and arm64, respectively.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable