File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -54,17 +54,19 @@ typedef struct _PyJitTracerState {
5454 _PyJitTracerPreviousState prev_state ;
5555} _PyJitTracerState ;
5656
57+ #endif
58+
5759typedef struct _PyJitExecutorState {
5860 char jit ;
61+ #if _Py_TIER2
5962 struct _PyExecutorObject * executor_list_head ;
6063 struct _PyExecutorObject * executor_deletion_list_head ;
6164 struct _PyExecutorObject * cold_executor ;
6265 struct _PyExecutorObject * cold_dynamic_executor ;
6366 int executor_deletion_list_remaining_capacity ;
6467 size_t executor_creation_counter ;
65- } _PyJitExecutorState ;
66-
6768#endif
69+ } _PyJitExecutorState ;
6870
6971// Every PyThreadState is actually allocated as a _PyThreadStateImpl. The
7072// PyThreadState fields are exposed as part of the C API, although most fields
@@ -132,8 +134,8 @@ typedef struct _PyThreadStateImpl {
132134#endif
133135#if _Py_TIER2
134136 _PyJitTracerState jit_tracer_state ;
135- _PyJitExecutorState jit_executor_state ;
136137#endif
138+ _PyJitExecutorState jit_executor_state ;
137139} _PyThreadStateImpl ;
138140
139141#ifdef __cplusplus
Original file line number Diff line number Diff line change @@ -1395,11 +1395,13 @@ _Py_HandlePending(PyThreadState *tstate)
13951395 _Py_RunGC (tstate );
13961396 }
13971397
1398+ #ifdef _Py_TIER2
13981399 if ((breaker & _PY_EVAL_JIT_INVALIDATE_COLD_BIT ) != 0 ) {
13991400 _Py_unset_eval_breaker_bit (tstate , _PY_EVAL_JIT_INVALIDATE_COLD_BIT );
14001401 _Py_Executors_InvalidateCold (tstate );
14011402 ((_PyThreadStateImpl * )tstate )-> jit_executor_state .executor_creation_counter = JIT_CLEANUP_THRESHOLD ;
14021403 }
1404+ #endif
14031405
14041406 /* GIL drop request */
14051407 if ((breaker & _PY_GIL_DROP_REQUEST_BIT ) != 0 ) {
You can’t perform that action at this time.
0 commit comments