8000 Fix the stable ABI. · python/cpython@fbb4556 · GitHub
[go: up one dir, main page]

Skip to content

Commit fbb4556

Browse files
Fix the stable ABI.
1 parent 8375a8d commit fbb4556

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Python/pystate.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,6 +1321,13 @@ _PyThreadState_New(PyInterpreterState *interp)
13211321
return new_threadstate(interp);
13221322
}
13231323

1324+
// We keep this for stable ABI compabibility.
1325+
PyThreadState *
1326+
_PyThreadState_Prealloc(PyInterpreterState *interp)
1327+
{
1328+
return _PyThreadState_New(interp);
1329+
}
1330+
13241331
// We keep this around for (accidental) stable ABI compatibility.
13251332
// Realisically, no extensions are using it.
13261333
void

0 commit comments

Comments
 (0)
0