]> granicus.if.org Git - python/commit
bpo-30860: Consolidate stateful runtime globals. (#2594)
authorEric Snow <ericsnowcurrently@gmail.com>
Wed, 6 Sep 2017 01:26:16 +0000 (18:26 -0700)
committerGitHub <noreply@github.com>
Wed, 6 Sep 2017 01:26:16 +0000 (18:26 -0700)
commit76d5abc8684bac4f2fc7cccfe2cd940923357351
tree4ae6a3bd88bef1266a8d9723c589f925d90bf848
parent501b324d3a940d26e0021a38aae8d896a30fbcff
bpo-30860: Consolidate stateful runtime globals. (#2594)

* group the (stateful) runtime globals into various topical structs
* consolidate the topical structs under a single top-level _PyRuntimeState struct
* add a check-c-globals.py script that helps identify runtime globals

Other globals are excluded (see globals.txt and check-c-globals.py).
40 files changed:
Include/Python.h
Include/ceval.h
Include/internal/_Python.h [new file with mode: 0644]
Include/internal/_ceval.h [new file with mode: 0644]
Include/internal/_condvar.h [new file with mode: 0644]
Include/internal/_gil.h [new file with mode: 0644]
Include/internal/_mem.h [new file with mode: 0644]
Include/internal/_pymalloc.h [new file with mode: 0644]
Include/internal/_pystate.h [new file with mode: 0644]
Include/internal/_warnings.h [new file with mode: 0644]
Include/object.h
Include/pylifecycle.h
Include/pystate.h
Makefile.pre.in
Misc/NEWS.d/next/Core and Builtins/2017-09-05-13-47-49.bpo-30860.MROpZw.rst [new file with mode: 0644]
Modules/_io/bufferedio.c
Modules/_threadmodule.c
Modules/_winapi.c
Modules/gcmodule.c
Modules/main.c
Objects/object.c
Objects/obmalloc.c
Objects/setobject.c
Objects/typeobject.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Parser/pgenmain.c
Python/_warnings.c
Python/ceval.c
Python/ceval_gil.h
Python/condvar.h
Python/pylifecycle.c
Python/pystate.c
Python/sysmodule.c
Python/thread.c
Python/thread_nt.h
Python/thread_pthread.h
Tools/c-globals/README [new file with mode: 0644]
Tools/c-globals/check-c-globals.py [new file with mode: 0644]
Tools/c-globals/ignored-globals.txt [new file with mode: 0644]