Page MenuHomeFreeBSD

Micro-optimize arm64's uma_small_alloc()
ClosedPublic

Authored by alc on Oct 19 2020, 11:38 PM.
Tags
None
Referenced Files
F91764916: D26876.id78481.diff
Thu, Aug 22, 2:25 AM
F91752007: D26876.id.diff
Wed, Aug 21, 10:01 PM
Unknown Object (File)
Sat, Aug 10, 10:41 PM
Unknown Object (File)
Jul 6 2024, 8:20 AM
Unknown Object (File)
Jul 5 2024, 1:01 PM
Unknown Object (File)
Jul 4 2024, 9:20 AM
Unknown Object (File)
Jul 3 2024, 12:19 PM
Unknown Object (File)
Apr 23 2024, 3:18 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().