mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-138122: Don't sample partial frame chains (#141912)
This commit is contained in:
parent
c5b37228af
commit
d6d850df89
13 changed files with 135 additions and 105 deletions
|
|
@ -2571,7 +2571,7 @@ Py_EndInterpreter(PyThreadState *tstate)
|
|||
if (tstate != _PyThreadState_GET()) {
|
||||
Py_FatalError("thread is not current");
|
||||
}
|
||||
if (tstate->current_frame != NULL) {
|
||||
if (tstate->current_frame != tstate->base_frame) {
|
||||
Py_FatalError("thread still has a frame");
|
||||
}
|
||||
interp->finalizing = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue