mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.9] bpo-43710: Rollback the 3.9 bpo-42500 fix, it broke the ABI in 3.9.3 (#25179)
This reverts commit 8b795ab554
.
It changed the PyThreadState structure size, breaking the ABI in 3.9.3.
This commit is contained in:
parent
de0b2b1330
commit
c7b0feca25
9 changed files with 79 additions and 74 deletions
|
@ -290,14 +290,12 @@ _PyErr_NormalizeException(PyThreadState *tstate, PyObject **exc,
|
|||
PyObject **val, PyObject **tb)
|
||||
{
|
||||
int recursion_depth = 0;
|
||||
tstate->recursion_headroom++;
|
||||
PyObject *type, *value, *initial_tb;
|
||||
|
||||
restart:
|
||||
type = *exc;
|
||||
if (type == NULL) {
|
||||
/* There was no exception, so nothing to do. */
|
||||
tstate->recursion_headroom--;
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -349,7 +347,6 @@ _PyErr_NormalizeException(PyThreadState *tstate, PyObject **exc,
|
|||
}
|
||||
*exc = type;
|
||||
*val = value;
|
||||
tstate->recursion_headroom--;
|
||||
return;
|
||||
|
||||
error:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue