There was an error while loading. Please reload this page.
1 parent 1827feb commit 82b395cCopy full SHA for 82b395c
1 file changed
Modules/_xxsubinterpretersmodule.c
@@ -67,16 +67,7 @@ _release_xid_data(_PyCrossInterpreterData *data, int ignoreexc)
67
}
68
int res = _PyCrossInterpreterData_Release(data);
69
if (res < 0) {
70
- // XXX Fix this!
71
- /* The owning interpreter is already destroyed.
72
- * Ideally, this shouldn't ever happen. (It's highly unlikely.)
73
- * For now we hack around that to resolve refleaks, by decref'ing
74
- * the released object here, even if its the wrong interpreter.
75
- * The owning interpreter has already been destroyed
76
- * so we should be okay, especially since the currently
77
- * shareable types are all very basic, with no GC.
78
- * That said, it becomes much messier once interpreters
79
- * no longer share a GIL, so this needs to be fixed before then. */
+ /* The owning interpreter is already destroyed. */
80
_PyCrossInterpreterData_Clear(NULL, data);
81
if (ignoreexc) {
82
// XXX Emit a warning?
0 commit comments