diff options
| author | Victor Stinner <vstinner@python.org> | 2024-02-20 23:31:30 (GMT) | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-20 23:31:30 (GMT) | 
| commit | 145bc2d638370cb6d3da361c6dc05c5bc29f0d11 (patch) | |
| tree | dd91999f742cdcc40254ac4ddd93a1834b3f89b3 /Python/gc_free_threading.c | |
| parent | 52d14775665a6fde518ee3da88a73f39b09d993f (diff) | |
| download | cpython-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_free_threading.c')
| -rw-r--r-- | Python/gc_free_threading.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/gc_free_threading.c b/Python/gc_free_threading.c index 4d886ee..1479089 100644 --- a/Python/gc_free_threading.c +++ b/Python/gc_free_threading.c @@ -1136,7 +1136,7 @@ gc_collect_main(PyThreadState *tstate, int generation, _PyGC_Reason reason)      n = state.uncollectable;      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);  | 
