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.
Paths
| Differential D26876 Authored by alc on Oct 19 2020, 11:38 PM.
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
Event TimelineHerald added a reviewer: manu. · View Herald TranscriptOct 19 2020, 11:38 PM2020-10-19 23:38:20 (UTC+0) Comment Actions 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 AM2020-10-20 02:36:18 (UTC+0) Comment Actions
amd64 also uses pagezero(). Closed by commit rS366944: Micro-optimize uma_small_alloc(). Replace bzero(..., PAGE_SIZE) by (authored by alc). · Explain WhyOct 22 2020, 5:48 PM2020-10-22 17:48:04 (UTC+0) This revision was automatically updated to reflect the committed changes. Herald added a subscriber: imp. · View Herald TranscriptOct 22 2020, 5:48 PM2020-10-22 17:48:05 (UTC+0)
Revision Contents
Diff 78607 head/sys/arm64/arm64/uma_machdep.c
|
Indents are wrong.