@@ -1408,9 +1408,9 @@ make_executor_from_uops(_PyThreadStateImpl *tstate, _PyUOpInstruction *buffer, i
14081408#ifdef _Py_JIT
14091409 executor -> jit_code = NULL ;
14101410 executor -> jit_size = 0 ;
1411- // This is initialized to true so we can prevent the executor
1411+ // This is initialized to false so we can prevent the executor
14121412 // from being immediately detected as cold and invalidated.
1413- executor -> vm_data .warm = true ;
1413+ executor -> vm_data .cold = false ;
14141414 if (_PyJIT_Compile (executor , executor -> trace , length )) {
14151415 Py_DECREF (executor );
14161416 return NULL ;
@@ -1698,9 +1698,9 @@ make_cold_executor(uint16_t opcode)
16981698 Py_FatalError ("Cannot allocate core JIT code" );
16991699 }
17001700 ((_PyUOpInstruction * )cold -> trace )-> opcode = opcode ;
1701- // This is initialized to true so we can prevent the executor
1701+ // This is initialized to false so we can prevent the executor
17021702 // from being immediately detected as cold and invalidated.
1703- cold -> vm_data .warm = true ;
1703+ cold -> vm_data .cold = false ;
17041704#ifdef _Py_JIT
17051705 cold -> jit_code = NULL ;
17061706 cold -> jit_size = 0 ;
@@ -1895,11 +1895,11 @@ _Py_Executors_InvalidateCold(PyInterpreterState *interp)
18951895 assert (exec -> vm_data .valid );
18961896 _PyExecutorObject * next = exec -> vm_data .links .next ;
18971897
1898- if (! exec -> vm_data .warm && PyList_Append (invalidate , (PyObject * )exec ) < 0 ) {
1898+ if (exec -> vm_data .cold && PyList_Append (invalidate , (PyObject * )exec ) < 0 ) {
18991899 goto error ;
19001900 }
19011901 else {
1902- exec -> vm_data .warm = false ;
1902+ exec -> vm_data .cold = true ;
19031903 }
19041904
19051905 exec = next ;
0 commit comments