HomeFreeBSD

MFC r301157:

Description

MFC r301157:

Microoptimize locking primitives by avoiding unnecessary atomic ops.

Inline version of primitives do an atomic op and if it fails they fallback to
actual primitives, which immediately retry the atomic op.

The obvious optimisation is to check if the lock is free and only then proceed
to do an atomic op.

Details

Provenance
mjgAuthored on
Parents
rS310978: Added a regression test.
Branches
Unknown
Tags
Unknown