mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Fix reference and global dict in spezializing LOAD_GLOBAL
This commit is contained in:
parent
6a911327d0
commit
03a419ac2d
1 changed files with 3 additions and 1 deletions
4
Python/generated_cases.c.h
generated
4
Python/generated_cases.c.h
generated
|
|
@ -9193,7 +9193,9 @@
|
|||
if (PyLazyImport_CheckExact(res_o)) {
|
||||
_PyFrame_SetStackPointer(frame, stack_pointer);
|
||||
PyObject *l_v = _PyImport_LoadLazyImportTstate(tstate, res_o);
|
||||
Py_DECREF(res_o);
|
||||
if(PyDict_SetItem(GLOBALS(), name, l_v) < 0) {
|
||||
JUMP_TO_LABEL(error);
|
||||
}
|
||||
stack_pointer = _PyFrame_GetStackPointer(frame);
|
||||
res_o = l_v;
|
||||
_PyFrame_SetStackPointer(frame, stack_pointer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue