mirror of
https://github.com/python/cpython.git
synced 2025-09-04 16:01:10 +00:00
gh-132399: fix invalid function signatures on the free-threaded build (#132400)
This commit is contained in:
parent
292a7248cd
commit
a81232c769
2 changed files with 21 additions and 10 deletions
|
@ -2996,8 +2996,9 @@ is_bytecode_unused(_PyCodeArray *tlbc, Py_ssize_t idx,
|
|||
}
|
||||
|
||||
static int
|
||||
get_code_with_unused_tlbc(PyObject *obj, struct get_code_args *args)
|
||||
get_code_with_unused_tlbc(PyObject *obj, void *data)
|
||||
{
|
||||
struct get_code_args *args = (struct get_code_args *) data;
|
||||
if (!PyCode_Check(obj)) {
|
||||
return 1;
|
||||
}
|
||||
|
@ -3046,7 +3047,7 @@ _Py_ClearUnusedTLBC(PyInterpreterState *interp)
|
|||
}
|
||||
// Collect code objects that have bytecode not in use by any thread
|
||||
_PyGC_VisitObjectsWorldStopped(
|
||||
interp, (gcvisitobjects_t)get_code_with_unused_tlbc, &args);
|
||||
interp, get_code_with_unused_tlbc, &args);
|
||||
if (args.err < 0) {
|
||||
goto err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue