mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Enhance _tracemalloc debug mode
Issue #26588: Enhance assertion in set_reentrant()
This commit is contained in:
parent
2f49e09110
commit
d5871e62dd
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue