diff options
author | Savannah Ostrowski <savannahostrowski@gmail.com> | 2023-10-29 20:53:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-29 20:53:25 (GMT) |
commit | 4a929d432b48775096d40f5c72bcd9be052b0a2d (patch) | |
tree | d173b58d3a38aeb2013c15c9292084214e56061d /Objects | |
parent | 4d6bdf8aabcc92303041420a96750fbc52c9f213 (diff) | |
download | cpython-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.c | 6 |
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, |