Skip to content

Commit ee4fad5

Browse files
committed
fix: mark the C extension as safe for free-threading #1799
1 parent 652a1da commit ee4fad5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

coverage/ctracer/module.c

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ PyInit_tracer(void)
3131
return NULL;
3232
}
3333

34+
#ifdef Py_GIL_DISABLED
35+
PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
36+
#endif
37+
3438
if (CTracer_intern_strings() < 0) {
3539
return NULL;
3640
}

0 commit comments

Comments
 (0)