File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -419,12 +419,16 @@ _Py_Specialize_LoadGlobal(
419
419
if (index != (uint16_t )index ) {
420
420
goto fail ;
421
421
}
422
- cache1 -> module_keys_version = _PyDictKeys_GetVersionForCurrentState ((PyDictObject * )globals );
423
- uint32_t keys_version = _PyDictKeys_GetVersionForCurrentState ((PyDictObject * )builtins );
424
- if (keys_version == 0 ) {
422
+ uint32_t globals_version = _PyDictKeys_GetVersionForCurrentState ((PyDictObject * )globals );
423
+ if (globals_version == 0 ) {
424
+ goto fail ;
425
+ }
426
+ uint32_t builtins_version = _PyDictKeys_GetVersionForCurrentState ((PyDictObject * )builtins );
427
+ if (builtins_version == 0 ) {
425
428
goto fail ;
426
429
}
427
- cache1 -> builtin_keys_version = keys_version ;
430
+ cache1 -> module_keys_version = globals_version ;
431
+ cache1 -> builtin_keys_version = builtins_version ;
428
432
cache0 -> index = index ;
429
433
* instr = _Py_MAKECODEUNIT (LOAD_GLOBAL_BUILTIN , _Py_OPARG (* instr ));
430
434
goto success ;
You can’t perform that action at this time.
0 commit comments