mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Fix global membership in LOAD_NAME
This commit is contained in:
parent
5ff0dd2363
commit
214b2543ee
4 changed files with 148044 additions and 0 deletions
|
|
@ -1799,6 +1799,9 @@ dummy_func(
|
|||
ERROR_IF(v_o == NULL);
|
||||
if (PyLazyImport_CheckExact(v_o)) {
|
||||
PyObject *l_v = _PyImport_LoadLazyImportTstate(tstate, v_o);
|
||||
if (l_v != NULL && PyDict_SetItem(GLOBALS(), name, l_v) < 0) {
|
||||
JUMP_TO_LABEL(error);
|
||||
}
|
||||
Py_DECREF(v_o);
|
||||
v_o = l_v;
|
||||
ERROR_IF(v_o == NULL);
|
||||
|
|
|
|||
148031
Python/deepfreeze/deepfreeze.c
Normal file
148031
Python/deepfreeze/deepfreeze.c
Normal file
File diff suppressed because one or more lines are too long
5
Python/executor_cases.c.h
generated
5
Python/executor_cases.c.h
generated
|
|
@ -2461,6 +2461,11 @@
|
|||
if (PyLazyImport_CheckExact(v_o)) {
|
||||
_PyFrame_SetStackPointer(frame, stack_pointer);
|
||||
PyObject *l_v = _PyImport_LoadLazyImportTstate(tstate, v_o);
|
||||
stack_pointer = _PyFrame_GetStackPointer(frame);
|
||||
if (l_v != NULL && PyDict_SetItem(GLOBALS(), name, l_v) < 0) {
|
||||
JUMP_TO_LABEL(error);
|
||||
}
|
||||
_PyFrame_SetStackPointer(frame, stack_pointer);
|
||||
Py_DECREF(v_o);
|
||||
stack_pointer = _PyFrame_GetStackPointer(frame);
|
||||
v_o = l_v;
|
||||
|
|
|
|||
5
Python/generated_cases.c.h
generated
5
Python/generated_cases.c.h
generated
|
|
@ -9409,6 +9409,11 @@
|
|||
if (PyLazyImport_CheckExact(v_o)) {
|
||||
_PyFrame_SetStackPointer(frame, stack_pointer);
|
||||
PyObject *l_v = _PyImport_LoadLazyImportTstate(tstate, v_o);
|
||||
stack_pointer = _PyFrame_GetStackPointer(frame);
|
||||
if (l_v != NULL && PyDict_SetItem(GLOBALS(), name, l_v) < 0) {
|
||||
JUMP_TO_LABEL(error);
|
||||
}
|
||||
_PyFrame_SetStackPointer(frame, stack_pointer);
|
||||
Py_DECREF(v_o);
|
||||
stack_pointer = _PyFrame_GetStackPointer(frame);
|
||||
v_o = l_v;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue