bpo-36301: Add _PyRuntimeState.preconfig (GH-12506)

_PyPreConfig_Write() now writes the applied pre-configuration into
_PyRuntimeState.preconfig.
This commit is contained in:
Victor Stinner 2019-03-23 12:05:43 +01:00 • committed by GitHub
parent 2b75155590
commit 6d5ee973f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 0 deletions

View file

@ -8,6 +8,7 @@ extern "C" {
# error "this header requires Py_BUILD_CORE or Py_BUILD_CORE_BUILTIN define"
#endif
#include "cpython/coreconfig.h"
#include "pystate.h"
#include "pythread.h"
@ -176,6 +177,7 @@ typedef struct pyruntimestate {
struct _ceval_runtime_state ceval;
struct _gilstate_runtime_state gilstate;
_PyPreConfig preconfig;
// XXX Consolidate globals found via the check-c-globals script.
} _PyRuntimeState;