[Python-checkins] cpython: Issue #26588: Don't call tracemalloc_init() at module initilization

victor.stinner python-checkins at python.org
Tue Mar 22 16:06:14 EDT 2016


https://hg.python.org/cpython/rev/f2d64f91d992
changeset:   100661:f2d64f91d992
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue Mar 22 20:56:49 2016 +0100
summary:
  Issue #26588: Don't call tracemalloc_init() at module initilization

So it's possible to get debug messages in test_tracemalloc.

files:
  Modules/_tracemalloc.c |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c
--- a/Modules/_tracemalloc.c
+++ b/Modules/_tracemalloc.c
@@ -1644,8 +1644,10 @@
     if (m == NULL)
         return NULL;
 
+#if 0
     if (tracemalloc_init() < 0)
         return NULL;
+#endif
 
     return m;
 }

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list