HomeFreeBSD

libcxx: Implement atomic::wait/notify using _umtx_op(2) for 64bit arches

Description

libcxx: Implement atomic::wait/notify using _umtx_op(2) for 64bit arches

Only 64bit architectures can be supported this way, because libcxx
defines __cxx_contention_t to be int64_t for FreeBSD, and 32bit arches
do not have a kind of UMTX_OP_WAIT_INT64_PRIVATE operation.

LLVM review: https://reviews.llvm.org/D142134

Tested by: emaste
Reviewed by: dim, emaste, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D38132

Details

Provenance
kibAuthored on Jan 20 2023, 2:57 AM
Reviewer
dim
Differential Revision
D38132: libcxx: Implement atomic::wait/wake using _umtx_op(2) ) for 64bit arches
Parents
rG62adb1e95352: UPDATING: fix typo
Branches
Unknown
Tags
Unknown