[Python-checkins] cpython (3.5): Enhance _tracemalloc debug mode

victor.stinner python-checkins at python.org
Tue Mar 22 19:20:12 EDT 2016


https://hg.python.org/cpython/rev/2b4731e22df8
changeset:   100666:2b4731e22df8
branch:      3.5
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Mar 23 00:17:04 2016 +0100
summary:
  Enhance _tracemalloc debug mode

Issue #26588: Enhance assertion in set_reentrant()

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


diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c
--- a/Modules/_tracemalloc.c
+++ b/Modules/_tracemalloc.c
@@ -189,7 +189,7 @@
 static void
 set_reentrant(int reentrant)
 {
-    assert(!reentrant || !get_reentrant());
+    assert(reentrant != tracemalloc_reentrant);
     tracemalloc_reentrant = reentrant;
 }
 #endif

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


More information about the Python-checkins mailing list