HomeFreeBSD

Avoid reloading bucket pointers in uma_vm_zone_stats().

Description

Avoid reloading bucket pointers in uma_vm_zone_stats().

The correctness of per-CPU cache accounting in that function is
dependent on reading per-CPU pointers exactly once. Ensure that
the compiler does not emit multiple loads of those pointers.

Reported and tested by: pho
Reviewed by: kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D22081

Details

Provenance
markjAuthored on
Reviewer
kib
Differential Revision
D22081: Fix pointer loads in uma_vm_zone_stats().
Parents
rS353885: MFC r353458, r353460:
Branches
Unknown
Tags
Unknown