Commit d222653f authored by Victor Stinner's avatar Victor Stinner

Issue #26558: Remove useless check in tracemalloc

The first instruction of tracemalloc_add_trace() is traceback_new() which
already checks the GIL.
parent 791da1cc
......@@ -439,10 +439,6 @@ tracemalloc_add_trace(void *ptr, size_t size)
trace_t trace;
int res;
#ifdef WITH_THREAD
assert(PyGILState_Check());
#endif
traceback = traceback_new();
if (traceback == NULL)
return -1;
......
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