@@ -127,7 +127,7 @@ sys_profile_call_or_return(
127127}
128128
129129static int
130- set_opcode_trace_lock_held (PyCodeObject * code , bool enable )
130+ set_opcode_trace_world_stopped (PyCodeObject * code , bool enable )
131131{
132132 _PyMonitoringEventSet events = 0 ;
133133 if (_PyMonitoring_GetLocalEvents (code , PY_MONITORING_SYS_TRACE_ID , & events ) < 0 ) {
@@ -169,7 +169,7 @@ _PyEval_SetOpcodeTrace(PyFrameObject *frame, bool enable)
169169
170170 PyInterpreterState * interp = _PyInterpreterState_GET ();
171171 _PyEval_StopTheWorld (interp );
172- int res = set_opcode_trace_lock_held (code , enable );
172+ int res = set_opcode_trace_world_stopped (code , enable );
173173 _PyEval_StartTheWorld (interp );
174174 return res ;
175175}
@@ -452,7 +452,7 @@ is_tstate_valid(PyThreadState *tstate)
452452#endif
453453
454454static int
455- setup_profile_callbacks (void * _unused )
455+ setup_profile_callbacks (void * Py_UNUSED ( arg ) )
456456{
457457 /* Setup PEP 669 monitoring callbacks and events. */
458458 if (set_callbacks (PY_MONITORING_SYS_PROFILE_ID ,
@@ -683,7 +683,7 @@ maybe_set_opcode_trace(PyThreadState *tstate)
683683 if (frame == NULL || !frame -> f_trace_opcodes ) {
684684 return 0 ;
685685 }
686- return set_opcode_trace_lock_held (_PyFrame_GetCode (iframe ), true);
686+ return set_opcode_trace_world_stopped (_PyFrame_GetCode (iframe ), true);
687687}
688688
689689int
0 commit comments