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)
Tue, Nov 11, 5:00 AM
Unknown Object (File)
Sun, Nov 9, 3:33 AM
Unknown Object (File)
Sat, Nov 8, 7:54 PM
Unknown Object (File)
Sun, Nov 2, 3:00 PM
Unknown Object (File)
Wed, Oct 29, 10:11 PM
Unknown Object (File)
Sun, Oct 26, 11:11 PM
Unknown Object (File)
Sun, Oct 26, 4:07 AM
Unknown Object (File)
Wed, Oct 22, 1:59 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().