Skip to content

Commit cce1e16

Browse files
committed
Fix free-threading
1 parent f8f2ecb commit cce1e16

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Python/gc_free_threading.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1925,7 +1925,7 @@ invoke_gc_callback(PyThreadState *tstate, const char *phase,
19251925
assert(PyList_CheckExact(gcstate->callbacks));
19261926
PyObject *info = NULL;
19271927
if (PyList_GET_SIZE(gcstate->callbacks) != 0) {
1928-
info = Py_BuildValue("{sisnsn}",
1928+
info = Py_BuildValue("{sisnsnsd}",
19291929
"generation", generation,
19301930
"collected", collected,
19311931
"uncollectable", uncollectable,
@@ -2378,8 +2378,6 @@ gc_collect_main(PyThreadState *tstate, int generation, _PyGC_Reason reason)
23782378
if (gcstate->debug & _PyGC_DEBUG_STATS) {
23792379
PySys_WriteStderr("gc: collecting generation %d...\n", generation);
23802380
show_stats_each_generations(gcstate);
2381-
// ignore error: don't interrupt the GC if reading the clock fails
2382-
(void)PyTime_PerfCounterRaw(&t1);
23832381
}
23842382

23852383
if (PyDTrace_GC_START_ENABLED()) {

0 commit comments

Comments
 (0)