@@ -1599,7 +1599,7 @@ _Py_Instrument(PyCodeObject *code, PyInterpreterState *interp)
15991599 if (code -> co_executors != NULL ) {
16001600 _PyCode_Clear_Executors (code );
16011601 }
1602- _Py_Executors_InvalidateDependency (interp , code );
1602+ _Py_Executors_InvalidateDependency (interp , code , 1 );
16031603 int code_len = (int )Py_SIZE (code );
16041604 /* Exit early to avoid creating instrumentation
16051605 * data for potential statically allocated code
@@ -1820,7 +1820,7 @@ _PyMonitoring_SetEvents(int tool_id, _PyMonitoringEventSet events)
18201820 return -1 ;
18211821 }
18221822 set_global_version (tstate , new_version );
1823- _Py_Executors_InvalidateAll (interp );
1823+ _Py_Executors_InvalidateAll (interp , 1 );
18241824 return instrument_all_executing_code_objects (interp );
18251825}
18261826
@@ -1850,7 +1850,7 @@ _PyMonitoring_SetLocalEvents(PyCodeObject *code, int tool_id, _PyMonitoringEvent
18501850 /* Force instrumentation update */
18511851 code -> _co_instrumentation_version -= MONITORING_VERSION_INCREMENT ;
18521852 }
1853- _Py_Executors_InvalidateDependency (interp , code );
1853+ _Py_Executors_InvalidateDependency (interp , code , 1 );
18541854 if (_Py_Instrument (code , interp )) {
18551855 return -1 ;
18561856 }
0 commit comments