]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-120289: Add external timer in traverse of _lsprof.Profiler (GH-121998)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Jul 2024 04:05:08 +0000 (06:05 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Jul 2024 04:05:08 +0000 (04:05 +0000)
gh-120289: Add external timer in traverse of _lsprof.Profiler (GH-121998)
(cherry picked from commit eaf094c09b5b1c33435c60ef49b1cec78c32573c)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Modules/_lsprof.c

index 79b95f9f152615c4f7851309fed19846939fe057..2c82b18c0e18d7fc447a1dcbf2e9afb140c7fcda 100644 (file)
@@ -852,6 +852,7 @@ static int
 profiler_traverse(ProfilerObject *op, visitproc visit, void *arg)
 {
     Py_VISIT(Py_TYPE(op));
+    Py_VISIT(op->externalTimer);
     return 0;
 }