]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-131675: Fix `mi_atomic_yield` in mimalloc on 32-bit ARM (gh-131784) (gh...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 31 Mar 2025 18:58:29 +0000 (20:58 +0200)
committerGitHub <noreply@github.com>
Mon, 31 Mar 2025 18:58:29 +0000 (14:58 -0400)
commit4913b6f944f6a8cff7eb52977a0fc05fedbe8d4b
tree655fff2fee2510adb7d46bcace492b630aa67dfd
parent29b958a36b8c18a289701f77c922831fe0151d53
[3.13] gh-131675: Fix `mi_atomic_yield` in mimalloc on 32-bit ARM (gh-131784) (gh-131954)

Use the standard `__ARM_ARCH` macro, which is supported by GCC and Clang.

The branching logic for of `__ARMEL__` has been removed so if the target
architecture supports v7+ instructions, a yield is emitted, otherwise a nop
is emitted. This covers both big and little endian scenarios.
(cherry picked from commit 03f6c8e239723637811fd8d278661f5292351197)

Signed-off-by: Vincent Fazio <vfazio@gmail.com>
Co-authored-by: Vincent Fazio <vfazio@gmail.com>
Include/internal/mimalloc/mimalloc/atomic.h
Misc/NEWS.d/next/Build/2025-03-27-01-21-50.gh-issue-131675.l2zfOO.rst [new file with mode: 0644]