File tree Expand file tree Collapse file tree 3 files changed +1
-14
lines changed Expand file tree Collapse file tree 3 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,6 @@ extern "C" {
8
8
# error "this header requires Py_BUILD_CORE define"
9
9
#endif
10
10
11
- struct _py_object_runtime_state {
12
- #ifdef Py_REF_DEBUG
13
- Py_ssize_t last_legacy_reftotal ;
14
- #else
15
- int _not_used ;
16
- #endif
17
- };
18
-
19
11
struct _py_object_state {
20
12
#ifdef Py_REF_DEBUG
21
13
Py_ssize_t reftotal ;
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ extern "C" {
16
16
#include "pycore_global_objects.h" // struct _Py_global_objects
17
17
#include "pycore_import.h" // struct _import_runtime_state
18
18
#include "pycore_interp.h" // PyInterpreterState
19
- #include "pycore_object_state.h" // struct _py_object_runtime_state
20
19
#include "pycore_parser.h" // struct _parser_runtime_state
21
20
#include "pycore_pymem.h" // struct _pymem_allocators
22
21
#include "pycore_pyhash.h" // struct pyhash_runtime_state
@@ -152,7 +151,6 @@ typedef struct pyruntimestate {
152
151
void * open_code_userdata ;
153
152
_Py_AuditHookEntry * audit_hook_head ;
154
153
155
- struct _py_object_runtime_state object_state ;
156
154
struct _Py_float_runtime_state float_state ;
157
155
struct _Py_unicode_runtime_state unicode_state ;
158
156
struct _Py_dict_runtime_state dict_state ;
Original file line number Diff line number Diff line change @@ -109,10 +109,7 @@ get_global_reftotal(void)
109
109
HEAD_UNLOCK (& _PyRuntime );
110
110
111
111
/* Add in the updated value from the legacy _Py_RefTotal. */
112
- Py_ssize_t last = _PyRuntime .object_state .last_legacy_reftotal ;
113
- Py_ssize_t legacy = get_legacy_reftotal ();
114
- _PyRuntime .object_state .last_legacy_reftotal = legacy ;
115
- total += legacy ;
112
+ total += get_legacy_reftotal ();
116
113
117
114
return total ;
118
115
}
You can’t perform that action at this time.
0 commit comments