HomeFreeBSD

select: replace reference counting with memory barriers in selfd

Description

select: replace reference counting with memory barriers in selfd

Refcounting was added to combat a race between selfdfree and doselwakup,
but it adds avoidable overhead.

selfdfree detects it can free the object by ->sf_si == NULL, thus we can
ensure that the condition only holds after all accesses are completed.

Details

Provenance
mjgAuthored on
Parents
rS367712: Ensure make delete-old does not unlink the llvm-cxxfilt and its manpage,
Branches
Unknown
Tags
Unknown