8000 [3.12] gh-119213: Fix getargs.c to store state in InterpreterState... by 1st1 · Pull Request #119194 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.12] gh-119213: Fix getargs.c to store state in InterpreterState... #119194 8000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add the removed struct from PyRuntime back to preserve ABI
  • Loading branch information
1st1 committed May 20, 2024
commit 4339e3ef2c5b184b51e677fdc463043394a9d662
9 changes: 9 additions & 0 deletions Include/internal/pycore_runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ extern "C" {
#include "pycore_typeobject.h" // struct types_runtime_state
#include "pycore_unicodeobject.h" // struct _Py_unicode_runtime_ids

/* The following struct is moved to interpreter state in 3.13+.
We're keeping it here for ABI compat.
See also: https://github.com/python/cpython/pull/119194. */
struct _UNUSED_getargs_runtime_state {
PyThread_type_lock mutex;
struct _PyArg_Parser *static_parsers;
};

/* GIL state */

struct _gilstate_runtime_state {
Expand Down Expand Up @@ -130,6 +138,7 @@ typedef struct pyruntimestate {
struct _import_runtime_state imports;
struct _ceval_runtime_state ceval;
struct _gilstate_runtime_state gilstate;
struct _UNUSED_getargs_runtime_state _UNUSED_gilstate;
struct _fileutils_state fileutils;
struct _faulthandler_runtime_state faulthandler;
struct _tracemalloc_runtime_state tracemalloc;
Expand Down
Loading
0