@@ -45,7 +45,6 @@ typedef struct _PyExitData {
4545
4646typedef struct _PyExecutorObject {
4747 PyObject_VAR_HEAD
48- PyThreadState * tstate ;
4948 const _PyUOpInstruction * trace ;
5049 _PyVMData vm_data ; /* Used by the VM, but opaque to the optimizer */
5150 uint32_t exit_count ;
@@ -74,16 +73,14 @@ PyAPI_FUNC(void) _Py_Executor_DependsOn(_PyExecutorObject *executor, void *obj);
7473
7574#ifdef _Py_TIER2
7675PyAPI_FUNC (void ) _Py_Executors_InvalidateDependency (PyInterpreterState * interp , void * obj , int is_invalidation );
77- PyAPI_FUNC (void ) _Py_Executors_InvalidateDependencyLockHeld (PyInterpreterState * interp , void * obj , int is_invalidation );
7876PyAPI_FUNC (void ) _Py_Executors_InvalidateAll (PyInterpreterState * interp , int is_invalidation );
79- PyAPI_FUNC (void ) _Py_Executors_InvalidateAllLockHeld (PyInterpreterState * interp , int is_invalidation );
80- PyAPI_FUNC (void ) _Py_Executors_InvalidateCold (PyThreadState * tstate );
81- PyAPI_FUNC (void ) _Py_Executors_InvalidateColdGC (PyInterpreterState * interp );
77+ PyAPI_FUNC (void ) _Py_Executors_InvalidateCold (PyInterpreterState * interp );
78+
8279#else
8380# define _Py_Executors_InvalidateDependency (A , B , C ) ((void)0)
8481# define _Py_Executors_InvalidateAll (A , B ) ((void)0)
8582# define _Py_Executors_InvalidateCold (A ) ((void)0)
86- # define _Py_Executors_InvalidateColdGC ( A ) ((void)0)
83+
8784#endif
8885
8986// Used as the threshold to trigger executor invalidation when
@@ -361,7 +358,9 @@ static inline int is_terminator(const _PyUOpInstruction *uop)
361358extern void _PyExecutor_Free (_PyExecutorObject * self );
362359
363360PyAPI_FUNC (int ) _PyDumpExecutors (FILE * out );
364-
361+ #ifdef _Py_TIER2
362+ extern void _Py_ClearExecutorDeletionList (PyInterpreterState * interp );
363+ #endif
365364
366365int _PyJit_translate_single_bytecode_to_trace (PyThreadState * tstate , _PyInterpreterFrame * frame , _Py_CODEUNIT * next_instr , int stop_tracing_opcode );
367366
@@ -376,4 +375,4 @@ void _PyJit_FinalizeTracing(PyThreadState *tstate);
376375#ifdef __cplusplus
377376}
378377#endif
379- #endif /* !Py_INTERNAL_OPTIMIZER_H */
378+ #endif /* !Py_INTERNAL_OPTIMIZER_H */
0 commit comments