Skip to content

Commit 1069190

Browse files
authored
gh-122860: Remove unused macro _Py_atomic_load_relaxed_int32 (#122861)
1 parent bc9d92c commit 1069190

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

Python/ceval_gil.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@
4949
(Note: this mechanism is enabled with FORCE_SWITCHING above)
5050
*/
5151

52-
// GH-89279: Force inlining by using a macro.
53-
#if defined(_MSC_VER) && SIZEOF_INT == 4
54-
#define _Py_atomic_load_relaxed_int32(ATOMIC_VAL) (assert(sizeof((ATOMIC_VAL)->_value) == 4), *((volatile int*)&((ATOMIC_VAL)->_value)))
55-
#else
56-
#define _Py_atomic_load_relaxed_int32(ATOMIC_VAL) _Py_atomic_load_relaxed(ATOMIC_VAL)
57-
#endif
58-
5952
// Atomically copy the bits indicated by mask between two values.
6053
static inline void
6154
copy_eval_breaker_bits(uintptr_t *from, uintptr_t *to, uintptr_t mask)

Python/ceval_macros.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,6 @@ do { \
375375
} while (0);
376376

377377

378-
// GH-89279: Force inlining by using a macro.
379-
#if defined(_MSC_VER) && SIZEOF_INT == 4
380-
#define _Py_atomic_load_relaxed_int32(ATOMIC_VAL) (assert(sizeof((ATOMIC_VAL)->_value) == 4), *((volatile int*)&((ATOMIC_VAL)->_value)))
381-
#else
382-
#define _Py_atomic_load_relaxed_int32(ATOMIC_VAL) _Py_atomic_load_relaxed(ATOMIC_VAL)
383-
#endif
384-
385378
static inline int _Py_EnterRecursivePy(PyThreadState *tstate) {
386379
return (tstate->py_recursion_remaining-- <= 0) &&
387380
_Py_CheckRecursiveCallPy(tstate);

0 commit comments

Comments
 (0)