[Python-checkins] cpython: Issue #26558: Remove useless check in tracemalloc
victor.stinner
python-checkins at python.org
Mon Mar 14 12:02:07 EDT 2016
https://hg.python.org/cpython/rev/8a5a0e223559
changeset: 100526:8a5a0e223559
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Mar 14 17:01:32 2016 +0100
summary:
Issue #26558: Remove useless check in tracemalloc
The first instruction of tracemalloc_add_trace() is traceback_new() which
already checks the GIL.
files:
Modules/_tracemalloc.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c
--- a/Modules/_tracemalloc.c
+++ b/Modules/_tracemalloc.c
@@ -439,10 +439,6 @@
trace_t trace;
int res;
-#ifdef WITH_THREAD
- assert(PyGILState_Check());
-#endif
-
traceback = traceback_new();
if (traceback == NULL)
return -1;
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list