mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
GH-111339: Fix initialization and finalization of static optimizer types (GH-111430)
This commit is contained in:
parent
4d6bdf8aab
commit
4a929d432b
4 changed files with 26 additions and 19 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue