From: Victor Stinner Date: Mon, 14 Mar 2016 16:01:32 +0000 (+0100) Subject: Issue #26558: Remove useless check in tracemalloc X-Git-Tag: v3.6.0a1~483 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d222653f8f39733f65ea93bfeab7748185ba4ea8;p=thirdparty%2FPython%2Fcpython.git Issue #26558: Remove useless check in tracemalloc The first instruction of tracemalloc_add_trace() is traceback_new() which already checks the GIL. --- diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c index 226a473b4c74..d62e68254df3 100644 --- a/Modules/_tracemalloc.c +++ b/Modules/_tracemalloc.c @@ -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;