The _Py_atomic_load_relaxed_int32 macro is no longer used:
|
// GH-89279: Force inlining by using a macro. |
|
#if defined(_MSC_VER) && SIZEOF_INT == 4 |
|
#define _Py_atomic_load_relaxed_int32(ATOMIC_VAL) (assert(sizeof((ATOMIC_VAL)->_value) == 4), *((volatile int*)&((ATOMIC_VAL)->_value))) |
|
#else |
|
#define _Py_atomic_load_relaxed_int32(ATOMIC_VAL) _Py_atomic_load_relaxed(ATOMIC_VAL) |
|
#endif |
|
// GH-89279: Force inlining by using a macro. |
|
#if defined(_MSC_VER) && SIZEOF_INT == 4 |
|
#define _Py_atomic_load_relaxed_int32(ATOMIC_VAL) (assert(sizeof((ATOMIC_VAL)->_value) == 4), *((volatile int*)&((ATOMIC_VAL)->_value))) |
|
#else |
|
#define _Py_atomic_load_relaxed_int32(ATOMIC_VAL) _Py_atomic_load_relaxed(ATOMIC_VAL) |
|
#endif |
Linked PRs
The
_Py_atomic_load_relaxed_int32macro is no longer used:cpython/Python/ceval_macros.h
Lines 378 to 383 in d323997
cpython/Python/ceval_gil.c
Lines 52 to 57 in d323997
Linked PRs
_Py_atomic_load_relaxed_int32#122861