mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
[3.12] gh-107630: Revert "[3.12] gh-107080: Fix Py_TRACE_REFS Crashes Under Isolated Subinterpreters (gh-107567) (#107599)" (#107648)
Revert "[3.12] gh-107080: Fix Py_TRACE_REFS Crashes Under Isolated Subinterpreters (gh-107567) (#107599)"
This reverts commit 58af2293c5
.
This commit is contained in:
parent
0e7a4f7336
commit
6e4eec7606
6 changed files with 29 additions and 62 deletions
|
@ -1920,11 +1920,11 @@ Py_FinalizeEx(void)
|
|||
}
|
||||
|
||||
if (dump_refs) {
|
||||
_Py_PrintReferences(tstate->interp, stderr);
|
||||
_Py_PrintReferences(stderr);
|
||||
}
|
||||
|
||||
if (dump_refs_fp != NULL) {
|
||||
_Py_PrintReferences(tstate->interp, dump_refs_fp);
|
||||
_Py_PrintReferences(dump_refs_fp);
|
||||
}
|
||||
#endif /* Py_TRACE_REFS */
|
||||
|
||||
|
@ -1960,11 +1960,11 @@ Py_FinalizeEx(void)
|
|||
*/
|
||||
|
||||
if (dump_refs) {
|
||||
_Py_PrintReferenceAddresses(tstate->interp, stderr);
|
||||
_Py_PrintReferenceAddresses(stderr);
|
||||
}
|
||||
|
||||
if (dump_refs_fp != NULL) {
|
||||
_Py_PrintReferenceAddresses(tstate->interp, dump_refs_fp);
|
||||
_Py_PrintReferenceAddresses(dump_refs_fp);
|
||||
fclose(dump_refs_fp);
|
||||
}
|
||||
#endif /* Py_TRACE_REFS */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue