Page MenuHomeFreeBSD

Micro-optimize arm64's uma_small_alloc()
ClosedPublic

Authored by alc on Oct 19 2020, 11:38 PM.
Tags
None
Referenced Files
F103265016: D26876.diff
Fri, Nov 22, 7:55 PM
Unknown Object (File)
Wed, Nov 20, 11:19 PM
Unknown Object (File)
Tue, Nov 19, 11:15 PM
Unknown Object (File)
Sat, Nov 9, 6:39 AM
Unknown Object (File)
Oct 16 2024, 8:32 AM
Unknown Object (File)
Oct 8 2024, 7:24 AM
Unknown Object (File)
Sep 21 2024, 10:10 AM
Unknown Object (File)
Sep 20 2024, 2:56 PM
Subscribers

Details

Summary

Replace bzero(..., PAGE_SIZE) by pagezero(). Ultimately, they use the same method for bulk zeroing, but the generality of bzero() requires size and alignment checks that pagezero() does not.

Eliminate an unnecessary #include.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

alc requested review of this revision.Oct 19 2020, 11:38 PM

Most other implementations also use bzero(), though on them pagezero() is nothing more than bzero(va, PAGE_SIZE) anyway.

This revision is now accepted and ready to land.Oct 20 2020, 2:36 AM

Most other implementations also use bzero(), though on them pagezero() is nothing more than bzero(va, PAGE_SIZE) anyway.

amd64 also uses pagezero().