Skip to content

Commit

Permalink
fix: mark the C extension as safe for free-threading #1799
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Jun 20, 2024
1 parent 652a1da commit ee4fad5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions coverage/ctracer/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ PyInit_tracer(void)
return NULL;
}

#ifdef Py_GIL_DISABLED
PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
#endif

if (CTracer_intern_strings() < 0) {
return NULL;
}
Expand Down

0 comments on commit ee4fad5

Please sign in to comment.