diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-22 23:17:04 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-22 23:17:04 (GMT) |
commit | d5871e62ddf1e826b3aa1fdc0cb888e6090e5408 (patch) | |
tree | 738a018416e367af79d3f9ef600920a2c1df09bf /Modules/_tracemalloc.c | |
parent | 2f49e091100e7b834767a1a295c63938c6864e55 (diff) | |
download | cpython-d5871e62ddf1e826b3aa1fdc0cb888e6090e5408.zip cpython-d5871e62ddf1e826b3aa1fdc0cb888e6090e5408.tar.gz cpython-d5871e62ddf1e826b3aa1fdc0cb888e6090e5408.tar.bz2 |
Enhance _tracemalloc debug mode
Issue #26588: Enhance assertion in set_reentrant()
Diffstat (limited to 'Modules/_tracemalloc.c')
-rw-r--r-- | Modules/_tracemalloc.c | 2 |
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 |