Skip to content

Commit 608af5e

Browse files
committed
Fix _interpreters build.
1 parent 890e389 commit 608af5e

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

Include/internal/pycore_interp_structs.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -979,11 +979,6 @@ struct _is {
979979
} trashcan;
980980
} runtime_immortals;
981981

982-
/* the initial PyInterpreterState.threads.head */
983-
_PyThreadStateImpl _initial_thread;
984-
// _initial_thread should be the last field of PyInterpreterState.
985-
// See https://github.com/python/cpython/issues/127117.
986-
987982
#if !defined(Py_GIL_DISABLED) && defined(Py_STACKREF_DEBUG)
988983
uint64_t next_stackref;
989984
_Py_hashtable_t *open_stackrefs_table;

Modules/_interpretersmodule.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* interpreters module */
22
/* low-level access to interpreter primitives */
33

4-
#include "object.h"
54
#ifndef Py_BUILD_CORE_BUILTIN
65
# define Py_BUILD_CORE_MODULE 1
76
#endif
@@ -196,7 +195,7 @@ static PyType_Slot XIBufferViewType_slots[] = {
196195

197196
static PyType_Spec XIBufferViewType_spec = {
198197
.name = MODULE_NAME_STR ".CrossInterpreterBufferView",
199-
.basicsize = sizeof(XIBufferViewObject),
198+
.basicsize = sizeof(xibufferview),
200199
.flags = (_Py_TPFLAGS_CPYTHON | Py_TPFLAGS_BASETYPE |
201200
Py_TPFLAGS_DISALLOW_INSTANTIATION | Py_TPFLAGS_IMMUTABLETYPE),
202201
.slots = XIBufferViewType_slots,
@@ -1661,4 +1660,4 @@ PyMODINIT_FUNC
16611660
MODINIT_FUNC_NAME(void)
16621661
{
16631662
return PyModuleDef_Init(&moduledef);
1664-
}
1663+
}

0 commit comments

Comments
 (0)