@@ -1599,7 +1599,7 @@ _Py_Instrument(PyCodeObject *code, PyInterpreterState *interp)
1599
1599
if (code -> co_executors != NULL ) {
1600
1600
_PyCode_Clear_Executors (code );
1601
1601
}
1602
- _Py_Executors_InvalidateDependency (interp , code );
1602
+ _Py_Executors_InvalidateDependency (interp , code , 1 );
1603
1603
int code_len = (int )Py_SIZE (code );
1604
1604
/* Exit early to avoid creating instrumentation
1605
1605
* data for potential statically allocated code
@@ -1820,7 +1820,7 @@ _PyMonitoring_SetEvents(int tool_id, _PyMonitoringEventSet events)
1820
1820
return -1 ;
1821
1821
}
1822
1822
set_global_version (tstate , new_version );
1823
- _Py_Executors_InvalidateAll (interp );
1823
+ _Py_Executors_InvalidateAll (interp , 1 );
1824
1824
return instrument_all_executing_code_objects (interp );
1825
1825
}
1826
1826
@@ -1850,7 +1850,7 @@ _PyMonitoring_SetLocalEvents(PyCodeObject *code, int tool_id, _PyMonitoringEvent
1850
1850
/* Force instrumentation update */
1851
1851
code -> _co_instrumentation_version -= MONITORING_VERSION_INCREMENT ;
1852
1852
}
1853
- _Py_Executors_InvalidateDependency (interp , code );
1853
+ _Py_Executors_InvalidateDependency (interp , code , 1 );
1854
1854
if (_Py_Instrument (code , interp )) {
1855
1855
return -1 ;
1856
1856
}
0 commit comments