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 Oct 22 2019, 2:20 PM
Parents
rG200abb43c079: tuntap(4): properly declare if_tun and if_tap modules
Branches
Unknown
Tags
Unknown

Event Timeline