Commit d5871e62 authored by Victor Stinner's avatar Victor Stinner

Enhance _tracemalloc debug mode

Issue #26588: Enhance assertion in set_reentrant()
parent 2f49e091
...@@ -189,7 +189,7 @@ get_reentrant(void) ...@@ -189,7 +189,7 @@ get_reentrant(void)
static void static void
set_reentrant(int reentrant) set_reentrant(int reentrant)
{ {
assert(!reentrant || !get_reentrant()); assert(reentrant != tracemalloc_reentrant);
tracemalloc_reentrant = reentrant; tracemalloc_reentrant = reentrant;
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment