Enhance _tracemalloc debug mode
Issue #26588: Enhance assertion in set_reentrant()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user