summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-22 23:17:04 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-22 23:17:04 (GMT)
commitd5871e62ddf1e826b3aa1fdc0cb888e6090e5408 (patch)
tree738a018416e367af79d3f9ef600920a2c1df09bf
parent2f49e091100e7b834767a1a295c63938c6864e55 (diff)
downloadcpython-d5871e62ddf1e826b3aa1fdc0cb888e6090e5408.zip
cpython-d5871e62ddf1e826b3aa1fdc0cb888e6090e5408.tar.gz
cpython-d5871e62ddf1e826b3aa1fdc0cb888e6090e5408.tar.bz2
Enhance _tracemalloc debug mode
Issue #26588: Enhance assertion in set_reentrant()
-rw-r--r--Modules/_tracemalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c
index 0e5f846..6327c95 100644
--- a/Modules/_tracemalloc.c
+++ b/Modules/_tracemalloc.c
@@ -189,7 +189,7 @@ get_reentrant(void)
static void
set_reentrant(int reentrant)
{
- assert(!reentrant || !get_reentrant());
+ assert(reentrant != tracemalloc_reentrant);
tracemalloc_reentrant = reentrant;
}
#endif