[all-commits] [llvm/llvm-project] ee5701: [libc++] Fix native wait alignment (#180928)

Hui via All-commits all-commits at lists.llvm.org
Mon Feb 16 00:54:06 PST 2026


  Branch: refs/heads/release/22.x
  Home:   https://github.com/llvm/llvm-project
  Commit: ee57019e9ea6065fb26b63d8e962be4aa78abdb1
      https://github.com/llvm/llvm-project/commit/ee57019e9ea6065fb26b63d8e962be4aa78abdb1
  Author: Hui <hui.xie1990 at gmail.com>
  Date:   2026-02-16 (Mon, 16 Feb 2026)

  Changed paths:
    M libcxx/include/__atomic/atomic_waitable_traits.h
    M libcxx/src/atomic.cpp
    A libcxx/test/libcxx/atomics/atomics.syn/wait.native.compile.pass.cpp

  Log Message:
  -----------
  [libc++] Fix native wait alignment (#180928)

This PR fixes two issues regarding the alignment of native wait:
- In the internal platform call, the local variable is copied from a
potentially non-aligned buffer
- Under the unstable ABI, the predicate to test eligibility of a type
being able to do native wait is purely on size. We should test also the
alignment of such type is qualified for platform call

---------

Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>
(cherry picked from commit 155beb97492e14e29ab7af3a805bbfb97bee1e6b)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list