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)
Sat, Feb 1, 9:44 AM
Unknown Object (File)
Jan 20 2025, 10:16 AM
Unknown Object (File)
Jan 15 2025, 10:15 AM
Unknown Object (File)
Jan 12 2025, 3:26 PM
Unknown Object (File)
Jan 9 2025, 7:59 PM
Unknown Object (File)
Jan 2 2025, 9:45 AM
Unknown Object (File)
Dec 18 2024, 4:58 PM
Unknown Object (File)
Dec 6 2024, 11:38 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().