8000 gh-76785: Improved Subinterpreters Compatibility with 3.12 (1/2) by ericsnowcurrently · Pull Request #126704 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-76785: Improved Subinterpreters Compatibility with 3.12 (1/2) #126704

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

Merged
Show file tree
Hide file tree
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
struct _xidregistry -> _PyXIData_registry_t
  • Loading branch information
ericsnowcurrently committed Nov 11, 2024
commit bca218a941ed24467cbacdf58291571bfe0dd183
6 changes: 3 additions & 3 deletions Include/internal/pycore_crossinterp_data_registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ typedef struct _xid_regitem {
xidatafunc getdata;
} _PyXIData_regitem_t;

struct _xidregistry {
typedef struct {
int global; /* builtin types or heap types */
int initialized;
PyMutex mutex;
_PyXIData_regitem_t *head;
};
} _PyXIData_registry_t;

PyAPI_FUNC(int) _PyXIData_RegisterClass(PyTypeObject *, xidatafunc);
PyAPI_FUNC(int) _PyXIData_UnregisterClass(PyTypeObject *);

struct _xid_lookup_state {
// XXX Remove this field once we have a tp_* slot.
struct _xidregistry registry;
_PyXIData_registry_t registry;
};
2 changes: 1 addition & 1 deletion Include/internal/pycore_interp.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extern "C" {
#include "pycore_code.h" // struct callable_cache
#include "pycore_codecs.h" // struct codecs_state
#include "pycore_context.h" // struct _Py_context_state
#include "pycore_crossinterp.h" // struct _xidregistry
#include "pycore_crossinterp.h" // struct _xi_state
#include "pycore_dict_state.h" // struct _Py_dict_state
#include "pycore_dtoa.h" // struct _dtoa_state
#include "pycore_exceptions.h" // struct _Py_exc_state
Expand Down
2 changes: 1 addition & 1 deletion Include/internal/pycore_runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extern "C" {
#include "pycore_atexit.h" // struct _atexit_runtime_state
#include "pycore_audit.h" // _Py_AuditHookEntry
#include "pycore_ceval_state.h" // struct _ceval_runtime_state
#include "pycore_crossinterp.h" // struct _xidregistry
#include "pycore_crossinterp.h" // struct _xi_runtime_state
#include "pycore_debug_offsets.h" // _Py_DebugOffsets
#include "pycore_faulthandler.h" // struct _faulthandler_runtime_state
#include "pycore_floatobject.h" // struct _Py_float_runtime_state
Expand Down
2 changes: 1 addition & 1 deletion Python/crossinterp_data_lookup.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "pycore_weakref.h" // _PyWeakref_GET_REF()


typedef struct _xidregistry dlregistry_t;
typedef _PyXIData_registry_t dlregistry_t;
typedef _PyXIData_regitem_t dlregitem_t;


Expand Down
0