Skip to content

Commit fef91dc

Browse files
committed
Merge branch 'main' into remove-conditional-stack-effects
2 parents accf4c9 + 83d54fa commit fef91dc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+206
-1382
lines changed

Include/internal/pycore_code.h

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

11-
#include "pycore_structs.h" // _Py_CODEUNIT
12-
#include "pycore_stackref.h" // _PyStackRef
1311
#include "pycore_backoff.h" // _Py_BackoffCounter
12+
#include "pycore_structs.h" // _Py_CODEUNIT
1413
#include "pycore_tstate.h" // _PyThreadStateImpl
1514

1615

Include/internal/pycore_freelist.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ extern "C" {
99
#endif
1010

1111
#include "pycore_freelist_state.h" // struct _Py_freelists
12-
#include "pycore_object.h" // _PyObject_IS_GC
12+
#include "pycore_interp_structs.h" // PyInterpreterState
13+
#include "pycore_pyatomic_ft_wrappers.h" // FT_ATOMIC_STORE_PTR_RELAXED()
1314
#include "pycore_pystate.h" // _PyThreadState_GET
1415
#include "pycore_stats.h" // OBJECT_STAT_INC
1516

Include/internal/pycore_interp.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extern "C" {
88
# error "this header requires Py_BUILD_CORE define"
99
#endif
1010

11-
#include "pycore_genobject.h" // _PyGen_FetchStopIterationValue
11+
#include "pycore_interp_structs.h" // PyInterpreterState
1212

1313

1414
/* interpreter state */
@@ -27,7 +27,6 @@ extern "C" {
2727

2828
extern void _PyInterpreterState_Clear(PyThreadState *tstate);
2929

30-
3130
static inline PyThreadState*
3231
_PyInterpreterState_GetFinalizing(PyInterpreterState *interp) {
3332
return (PyThreadState*)_Py_atomic_load_ptr_relaxed(&interp->_finalizing);
@@ -53,7 +52,6 @@ _PyInterpreterState_SetFinalizing(PyInterpreterState *interp, PyThreadState *tst
5352
}
5453

5554

56-
5755
// Exports for the _testinternalcapi module.
5856
PyAPI_FUNC(int64_t) _PyInterpreterState_ObjectToID(PyObject *);
5957
PyAPI_FUNC(PyInterpreterState *) _PyInterpreterState_LookUpID(int64_t);

0 commit comments

Comments
 (0)