mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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
1 changed files with 0 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue