mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Remove legacy opcache structs (GH-27164)
This commit is contained in:
parent
9af34c9351
commit
e9cd47d0e5
3 changed files with 1 additions and 26 deletions
|
|
@ -4,29 +4,6 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Legacy Opcache */
|
||||
|
||||
typedef struct {
|
||||
PyObject *ptr; /* Cached pointer (borrowed reference) */
|
||||
uint64_t globals_ver; /* ma_version of global dict */
|
||||
uint64_t builtins_ver; /* ma_version of builtin dict */
|
||||
} _PyOpcache_LoadGlobal;
|
||||
|
||||
typedef struct {
|
||||
PyTypeObject *type;
|
||||
Py_ssize_t hint;
|
||||
unsigned int tp_version_tag;
|
||||
} _PyOpCodeOpt_LoadAttr;
|
||||
|
||||
struct _PyOpcache {
|
||||
union {
|
||||
_PyOpcache_LoadGlobal lg;
|
||||
_PyOpCodeOpt_LoadAttr la;
|
||||
} u;
|
||||
char optimized;
|
||||
};
|
||||
|
||||
|
||||
/* PEP 659
|
||||
* Specialization and quickening structs and helper functions
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue