Skip to content

Commit 609f7fb

Browse files
Update Python/tracemalloc.c
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
1 parent 78ceae3 commit 609f7fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/tracemalloc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,8 +891,8 @@ _PyTraceMalloc_Stop(void)
891891
TABLES_UNLOCK();
892892

893893
// Call it after TABLES_UNLOCK() since it calls _PyEval_StopTheWorldAll()
894-
// which would lead to a deadlock with TABLES_LOCK() which doesn't release
895-
// the GIL.
894+
// which would lead to a deadlock with TABLES_LOCK() which doesn't detaches
895+
// the thread state.
896896
(void)PyRefTracer_SetTracer(NULL, NULL);
897897
}
898898

0 commit comments

Comments
 (0)