]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] 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:10:11 +0000 (06:10 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Jul 2024 04:10:11 +0000 (04:10 +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 3dd5f554e06f76326e05187eee43ca9b062596d9..8b6906234bdc25e8dda2db4f500ade77c79dfcce 100644 (file)
@@ -856,6 +856,7 @@ static int
 profiler_traverse(ProfilerObject *op, visitproc visit, void *arg)
 {
     Py_VISIT(Py_TYPE(op));
+    Py_VISIT(op->externalTimer);
     return 0;
 }