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:
Victor Stinner 2016-03-14 17:01:32 +01:00
parent 791da1cc26
commit d222653f8f
1 changed files with 0 additions and 4 deletions

View File

@ -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;