[all-commits] [llvm/llvm-project] 17ecbb: [libc++] [FreeBSD] only use _umtx_op(2) on 64bit a...

Konstantin Belousov via All-commits all-commits at lists.llvm.org
Wed Mar 1 12:51:57 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 17ecbb3ea6ff0ae716dd524c0e2bf75a4815c95b
      https://github.com/llvm/llvm-project/commit/17ecbb3ea6ff0ae716dd524c0e2bf75a4815c95b
  Author: Konstantin Belousov <kib at freebsd.org>
  Date:   2023-03-01 (Wed, 01 Mar 2023)

  Changed paths:
    M libcxx/src/atomic.cpp

  Log Message:
  -----------
  [libc++] [FreeBSD] only use _umtx_op(2) on 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.

Fixes: 83387dbc18e7998f87aa4a2d35320bcb2ed5c392

Reviewed by: arichardson, ldionne, emaste, Mordante
Differential Revision: https://reviews.llvm.org/D142422




More information about the All-commits mailing list