homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Mark.Shannon, eric.snow, gvanrossum, vstinner
Date 2022年01月23日.00:52:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642899154.78.0.334954236435.issue46476@roundup.psfhosted.org>
In-reply-to
Content
Patch to disable _Py_Quicken(), to help me debugging other memory leaks at Python exit:
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h
index dfc75300315..f9cdefed2a2 100644
--- a/Include/internal/pycore_code.h
+++ b/Include/internal/pycore_code.h
@@ -146,12 +146,14 @@ int _Py_Quicken(PyCodeObject *code);
 static inline int
 _Py_IncrementCountAndMaybeQuicken(PyCodeObject *code)
 {
+#if 0
 if (code->co_warmup != 0) {
 code->co_warmup++;
 if (code->co_warmup == 0) {
 return _Py_Quicken(code) ? -1 : 1;
 }
 }
+#endif
 return 0;
 }
History
Date User Action Args
2022年01月23日 00:52:34vstinnersetrecipients: + vstinner, gvanrossum, Mark.Shannon, eric.snow
2022年01月23日 00:52:34vstinnersetmessageid: <1642899154.78.0.334954236435.issue46476@roundup.psfhosted.org>
2022年01月23日 00:52:34vstinnerlinkissue46476 messages
2022年01月23日 00:52:34vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /