changeset: 100526:8a5a0e223559 user: Victor Stinner date: Mon Mar 14 17:01:32 2016 +0100 files: Modules/_tracemalloc.c description: Issue #26558: Remove useless check in tracemalloc The first instruction of tracemalloc_add_trace() is traceback_new() which already checks the GIL. diff -r c24630367767 -r 8a5a0e223559 Modules/_tracemalloc.c --- a/Modules/_tracemalloc.c Mon Mar 14 16:53:12 2016 +0100 +++ b/Modules/_tracemalloc.c Mon Mar 14 17:01:32 2016 +0100 @@ -439,10 +439,6 @@ trace_t trace; int res; -#ifdef WITH_THREAD - assert(PyGILState_Check()); -#endif - traceback = traceback_new(); if (traceback == NULL) return -1;