diff options
author | Gregory P. Smith <greg@krypto.org> | 2021-04-04 04:02:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-04 13:02:29 +0200 |
commit | c7b0feca25fc68ec3e0884b82e5f45a4da011e8e (patch) | |
tree | 0dff16d035648b7c31fb291d40430407484579c6 /Python/errors.c | |
parent | de0b2b133011953b02536cc78f2499d5d55224f8 (diff) | |
download | cpython-git-c7b0feca25fc68ec3e0884b82e5f45a4da011e8e.tar.gz |
[3.9] bpo-43710: Rollback the 3.9 bpo-42500 fix, it broke the ABI in 3.9.3 (#25179)
This reverts commit 8b795ab5541d8a4e69be4137dfdc207714270b77.
It changed the PyThreadState structure size, breaking the ABI in 3.9.3.
Diffstat (limited to 'Python/errors.c')
-rw-r--r-- | Python/errors.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/errors.c b/Python/errors.c index d8c2d8b923..87af39d527 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -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: |