mirror of
https://github.com/python/cpython.git
synced 2026-02-24 16:10:34 +00:00
gh-145064: Fix JIT assertion failure during CALL_ALLOC_AND_ENTER_INIT side exit (GH-145100)
This commit is contained in:
parent
819ea3ca68
commit
fd01372d4e
3 changed files with 51 additions and 1 deletions
|
|
@ -995,7 +995,7 @@ _PyJit_TryInitializeTracing(
|
|||
return 0;
|
||||
}
|
||||
PyObject *func = PyStackRef_AsPyObjectBorrow(frame->f_funcobj);
|
||||
if (func == NULL) {
|
||||
if (func == NULL || !PyFunction_Check(func)) {
|
||||
return 0;
|
||||
}
|
||||
PyCodeObject *code = _PyFrame_GetCode(frame);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue