Commit 2ead3d24 authored by Victor Stinner's avatar Victor Stinner

Issue #18874: make it more explicit than set_reentrant() only accept 0 or 1

parent 7a5be14d
......@@ -168,6 +168,7 @@ get_reentrant(void)
static void
set_reentrant(int reentrant)
{
assert(reentrant == 0 || reentrant == 1);
if (reentrant) {
assert(PyThread_get_key_value(tracemalloc_reentrant_key) == NULL);
PyThread_set_key_value(tracemalloc_reentrant_key,
......
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