File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,10 @@ struct _ts {
268
268
// Alias for backward compatibility with Python 3.8
269
269
#define _PyInterpreterState_Get PyInterpreterState_Get
270
270
271
+ /* An alias for the internal _PyThreadState_New(),
272
+ kept for stable ABI compatibility. */
273
+ PyAPI_FUNC (PyThreadState * ) _PyThreadState_Prealloc (PyInterpreterState * );
274
+
271
275
/* Similar to PyThreadState_Get(), but don't issue a fatal error
272
276
* if it is NULL. */
273
277
PyAPI_FUNC (PyThreadState * ) _PyThreadState_UncheckedGet (void );
Original file line number Diff line number Diff line change @@ -1321,6 +1321,13 @@ _PyThreadState_New(PyInterpreterState *interp)
1321
1321
return new_threadstate (interp );
1322
1322
}
1323
1323
1324
+ // We keep this for stable ABI compabibility.
1325
+ PyThreadState *
1326
+ _PyThreadState_Prealloc (PyInterpreterState * interp )
1327
+ {
1328
+ return _PyThreadState_New (interp );
1329
+ }
1330
+
1324
1331
// We keep this around for (accidental) stable ABI compatibility.
1325
1332
// Realisically, no extensions are using it.
1326
1333
void
You can’t perform that action at this time.
0 commit comments