summaryrefslogtreecommitdiffstats
path: root/Python/gc.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-02-20 23:31:30 (GMT)
committerGitHub <noreply@github.com>2024-02-20 23:31:30 (GMT)
commit145bc2d638370cb6d3da361c6dc05c5bc29f0d11 (patch)
treedd91999f742cdcc40254ac4ddd93a1834b3f89b3 /Python/gc.c
parent52d14775665a6fde518ee3da88a73f39b09d993f (diff)
downloadcpython-145bc2d638370cb6d3da361c6dc05c5bc29f0d11.zip
cpython-145bc2d638370cb6d3da361c6dc05c5bc29f0d11.tar.gz
cpython-145bc2d638370cb6d3da361c6dc05c5bc29f0d11.tar.bz2
gh-110850: Use public PyTime functions (#115746)
Replace private _PyTime functions with public PyTime functions. random_seed_time_pid() now reports errors to its caller.
Diffstat (limited to 'Python/gc.c')
-rw-r--r--Python/gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/gc.c b/Python/gc.c
index a031897..ea3b596 100644
--- a/Python/gc.c
+++ b/Python/gc.c
@@ -1428,7 +1428,7 @@ gc_collect_main(PyThreadState *tstate, int generation, _PyGC_Reason reason)
debug_cycle("uncollectable", FROM_GC(gc));
}
if (gcstate->debug & _PyGC_DEBUG_STATS) {
- double d = _PyTime_AsSecondsDouble(_PyTime_PerfCounterUnchecked() - t1);
+ double d = PyTime_AsSecondsDouble(_PyTime_PerfCounterUnchecked() - t1);
PySys_WriteStderr(
"gc: done, %zd unreachable, %zd uncollectable, %.4fs elapsed\n",
n+m, n, d);