Enhance _tracemalloc debug mode
Issue #26588: Enhance assertion in set_reentrant()
This commit is contained in:
parent
2f49e09110
commit
d5871e62dd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue