-
- Downloads
gh-81057: Add PyInterpreterState.static_objects (gh-99397)
As we consolidate global variables, we find some objects that are almost suitable to add to _PyRuntimeState.global_objects, but have some small/sneaky bit of per-interpreter state (e.g. a weakref list). We're adding PyInterpreterState.static_objects so we can move such objects there. (We'll removed the _not_used field once we've added others.) https://github.com/python/cpython/issues/81057
Showing
- Include/internal/pycore_global_objects.h 18 additions, 0 deletionsInclude/internal/pycore_global_objects.h
- Include/internal/pycore_global_objects_fini_generated.h 3 additions, 2 deletionsInclude/internal/pycore_global_objects_fini_generated.h
- Include/internal/pycore_interp.h 4 additions, 0 deletionsInclude/internal/pycore_interp.h
- Include/internal/pycore_runtime_init.h 5 additions, 0 deletionsInclude/internal/pycore_runtime_init.h
- Python/pylifecycle.c 1 addition, 1 deletionPython/pylifecycle.c
- Tools/build/generate_global_objects.py 4 additions, 2 deletionsTools/build/generate_global_objects.py
Loading
Please register or sign in to comment