Page MenuHomeFreeBSD

Micro-optimize arm64's uma_small_alloc()
ClosedPublic

Authored by alc on Oct 19 2020, 11:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 13, 3:13 PM
Unknown Object (File)
Sat, Apr 11, 10:38 AM
Unknown Object (File)
Sat, Apr 11, 5:21 AM
Unknown Object (File)
Fri, Apr 10, 9:29 PM
Unknown Object (File)
Fri, Apr 10, 12:25 PM
Unknown Object (File)
Mon, Apr 6, 1:56 AM
Unknown Object (File)
Mar 25 2026, 6:20 AM
Unknown Object (File)
Mar 23 2026, 1:44 AM
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().