bpo-36333: Fix leak in _PyRuntimeState_Fini by matrixise · Pull Request #12400 · python/cpython

@matrixise

@matrixise

vstinner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I would prefer that @ericsnowcurrently review it since he added _PyRuntime.xidregistry (and its mutex).

@vstinner

Python 3.7 is not affected: it doesn't have _PyRuntime.xidregistry.

eamanu

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

ericsnowcurrently

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks for working on this!

@ericsnowcurrently

FWIW, _PyRuntime.ceval.pending.lock may be leaking too.

@vstinner

FWIW, _PyRuntime.ceval.pending.lock may be leaking too.

@matrixise: Can you try to free _PyRuntime.ceval.pending.lock in _PyEval_FiniThreads()?

@matrixise

@matrixise

@vstinner