Skip to content

Commit 2dcc570

Browse files
authored
gh-109693: Remove pycore_atomic.h (gh-110992)
1 parent 2324652 commit 2dcc570

8 files changed

+4
-564
lines changed

Include/internal/pycore_atomic.h

Lines changed: 0 additions & 557 deletions
This file was deleted.

Include/internal/pycore_ceval.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ extern "C" {
88
# error "this header requires Py_BUILD_CORE define"
99
#endif
1010

11+
#include "dynamic_annotations.h" // _Py_ANNOTATE_RWLOCK_CREATE
12+
1113
#include "pycore_interp.h" // PyInterpreterState.eval_frame
1214
#include "pycore_pystate.h" // _PyThreadState_GET()
1315

Include/internal/pycore_pythread.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ extern "C" {
88
# error "this header requires Py_BUILD_CORE define"
99
#endif
1010

11+
#include "dynamic_annotations.h" // _Py_ANNOTATE_PURE_HAPPENS_BEFORE_MUTEX
12+
1113
// Get _POSIX_THREADS and _POSIX_SEMAPHORES macros if available
1214
#if (defined(HAVE_UNISTD_H) && !defined(_POSIX_THREADS) \
1315
&& !defined(_POSIX_SEMAPHORES))

Makefile.pre.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1754,7 +1754,6 @@ PYTHON_HEADERS= \
17541754
$(srcdir)/Include/internal/pycore_ast.h \
17551755
$(srcdir)/Include/internal/pycore_ast_state.h \
17561756
$(srcdir)/Include/internal/pycore_atexit.h \
1757-
$(srcdir)/Include/internal/pycore_atomic.h \
17581757
$(srcdir)/Include/internal/pycore_bitutils.h \
17591758
$(srcdir)/Include/internal/pycore_bytes_methods.h \
17601759
$(srcdir)/Include/internal/pycore_bytesobject.h \

PCbuild/pythoncore.vcxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@
202202
<ClInclude Include="..\Include\internal\pycore_ast.h" />
203203
<ClInclude Include="..\Include\internal\pycore_ast_state.h" />
204204
<ClInclude Include="..\Include\internal\pycore_atexit.h" />
205-
<ClInclude Include="..\Include\internal\pycore_atomic.h" />
206205
<ClInclude Include="..\Include\internal\pycore_bitutils.h" />
207206
<ClInclude Include="..\Include\internal\pycore_bytes_methods.h" />
208207
<ClInclude Include="..\Include\internal\pycore_bytesobject.h" />

PCbuild/pythoncore.vcxproj.filters

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,9 +534,6 @@
534534
<ClInclude Include="..\Include\internal\pycore_atexit.h">
535535
<Filter>Include\internal</Filter>
536536
</ClInclude>
537-
<ClInclude Include="..\Include\internal\pycore_atomic.h">
538-
<Filter>Include\internal</Filter>
539-
</ClInclude>
540537
<ClInclude Include="..\Include\internal\pycore_bitutils.h">
541538
<Filter>Include\internal</Filter>
542539
</ClInclude>

Python/ceval_gil.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
#include "Python.h"
3-
#include "pycore_atomic.h" // _Py_ANNOTATE_RWLOCK_CREATE
43
#include "pycore_ceval.h" // _PyEval_SignalReceived()
54
#include "pycore_initconfig.h" // _PyStatus_OK()
65
#include "pycore_interp.h" // _Py_RunGC()

Python/thread_pthread.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include "pycore_interp.h" // _PyInterpreterState.threads.stacksize
22
#include "pycore_pythread.h" // _POSIX_SEMAPHORES
3-
#include "pycore_atomic.h" // _Py_ANNOTATE_PURE_HAPPENS_BEFORE_MUTEX
43

54
/* Posix threads interface */
65

0 commit comments

Comments
 (0)