mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
gh-145064: Fix JIT assertion failure during CALL_ALLOC_AND_ENTER_INIT side exit (GH-145100)
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user