summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorSavannah Ostrowski <savannahostrowski@gmail.com>2023-10-29 20:53:25 (GMT)
committerGitHub <noreply@github.com>2023-10-29 20:53:25 (GMT)
commit4a929d432b48775096d40f5c72bcd9be052b0a2d (patch)
treed173b58d3a38aeb2013c15c9292084214e56061d /Objects
parent4d6bdf8aabcc92303041420a96750fbc52c9f213 (diff)
downloadcpython-4a929d432b48775096d40f5c72bcd9be052b0a2d.zip
cpython-4a929d432b48775096d40f5c72bcd9be052b0a2d.tar.gz
cpython-4a929d432b48775096d40f5c72bcd9be052b0a2d.tar.bz2
GH-111339: Fix initialization and finalization of static optimizer types (GH-111430)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/object.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 3ed272a..791db75 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -13,6 +13,7 @@
#include "pycore_memoryobject.h" // _PyManagedBuffer_Type
#include "pycore_namespace.h" // _PyNamespace_Type
#include "pycore_object.h" // PyAPI_DATA() _Py_SwappedOp definition
+#include "pycore_optimizer.h" // _PyUOpExecutor_Type, _PyUOpOptimizer_Type, ...
#include "pycore_pyerrors.h" // _PyErr_Occurred()
#include "pycore_pymem.h" // _PyMem_IsPtrFreed()
#include "pycore_pystate.h" // _PyThreadState_GET()
@@ -2157,6 +2158,9 @@ static PyTypeObject* static_types[] = {
&_PyBufferWrapper_Type,
&_PyContextTokenMissing_Type,
&_PyCoroWrapper_Type,
+ &_PyCounterExecutor_Type,
+ &_PyCounterOptimizer_Type,
+ &_PyDefaultOptimizer_Type,
&_Py_GenericAliasIterType,
&_PyHamtItems_Type,
&_PyHamtKeys_Type,
@@ -2176,6 +2180,8 @@ static PyTypeObject* static_types[] = {
&_PyPositionsIterator,
&_PyUnicodeASCIIIter_Type,
&_PyUnion_Type,
+ &_PyUOpExecutor_Type,
+ &_PyUOpOptimizer_Type,
&_PyWeakref_CallableProxyType,
&_PyWeakref_ProxyType,
&_PyWeakref_RefType,