mirror of https://github.com/python/cpython
Issue #26558: Remove useless check in tracemalloc
The first instruction of tracemalloc_add_trace() is traceback_new() which already checks the GIL.
This commit is contained in:
parent
791da1cc26
commit
d222653f8f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue