Skip to content

Commit d4d4d51

Browse files
committed
gh-116738: Remove the unnecessary critical_section parameter
1 parent 3bb0e14 commit d4d4d51

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

Modules/_lsprof.c

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ static int statsForEntry(rotating_node_t *node, void *arg)
534534
}
535535

536536
/*[clinic input]
537-
@critical_section self
537+
@critical_section
538538
_lsprof.Profiler.getstats
539539
540540
cls: defining_class
@@ -566,7 +566,7 @@ profiler_subentry objects:
566566

567567
static PyObject *
568568
_lsprof_Profiler_getstats_impl(ProfilerObject *self, PyTypeObject *cls)
569-
/*[clinic end generated code: output=1806ef720019ee03 input=77dc00ff84d1ed5e]*/
569+
/*[clinic end generated code: output=1806ef720019ee03 input=3dc69eb85ed73d91]*/
570570
{
571571
statscollector_t collect;
572572
collect.state = _PyType_GetModuleState(cls);
@@ -614,7 +614,7 @@ setBuiltins(ProfilerObject *pObj, int nvalue)
614614
}
615615

616616
/*[clinic input]
617-
@critical_section self
617+
@critical_section
618618
_lsprof.Profiler._pystart_callback
619619
620620
code: object
@@ -626,15 +626,15 @@ _lsprof.Profiler._pystart_callback
626626
static PyObject *
627627
_lsprof_Profiler__pystart_callback_impl(ProfilerObject *self, PyObject *code,
628628
PyObject *instruction_offset)
629-
/*[clinic end generated code: output=5fec8b7ad5ed25e8 input=c9ced1fe7182f358]*/
629+
/*[clinic end generated code: output=5fec8b7ad5ed25e8 input=b61a0e79cf1f8499]*/
630630
{
631631
ptrace_enter_call((PyObject*)self, (void *)code, code);
632632

633633
Py_RETURN_NONE;
634634
}
635635

636636
/*[clinic input]
637-
@critical_section self
637+
@critical_section
638638
_lsprof.Profiler._pythrow_callback
639639
640640
code: object
@@ -648,15 +648,15 @@ static PyObject *
648648
_lsprof_Profiler__pythrow_callback_impl(ProfilerObject *self, PyObject *code,
649649
PyObject *instruction_offset,
650650
PyObject *exception)
651-
/*[clinic end generated code: output=0a32988919dfb94c input=3cd9554a8ebb13d7]*/
651+
/*[clinic end generated code: output=0a32988919dfb94c input=60c7f272206d3758]*/
652652
{
653653
ptrace_enter_call((PyObject*)self, (void *)code, code);
654654

655655
Py_RETURN_NONE;
656656
}
657657

658658
/*[clinic input]
659-
@critical_section self
659+
@critical_section
660660
_lsprof.Profiler._pyreturn_callback
661661
662662
code: object
@@ -671,7 +671,7 @@ _lsprof_Profiler__pyreturn_callback_impl(ProfilerObject *self,
671671
PyObject *code,
672672
PyObject *instruction_offset,
673673
PyObject *retval)
674-
/*[clinic end generated code: output=9e2f6fc1b882c51e input=4d33df394ab00b42]*/
674+
/*[clinic end generated code: output=9e2f6fc1b882c51e input=0ddcc1ec53faa928]*/
675675
{
676676
ptrace_leave_call((PyObject*)self, (void *)code);
677677

@@ -707,7 +707,7 @@ PyObject* get_cfunc_from_callable(PyObject* callable, PyObject* self_arg, PyObje
707707
}
708708

709709
/*[clinic input]
710-
@critical_section self
710+
@critical_section
711711
_lsprof.Profiler._ccall_callback
712712
713713
code: object
@@ -722,7 +722,7 @@ static PyObject *
722722
_lsprof_Profiler__ccall_callback_impl(ProfilerObject *self, PyObject *code,
723723
PyObject *instruction_offset,
724724
PyObject *callable, PyObject *self_arg)
725-
/*[clinic end generated code: output=152db83cabd18cad input=4c52bc9026278a19]*/
725+
/*[clinic end generated code: output=152db83cabd18cad input=2fc1e0630ee5e32b]*/
726726
{
727727
if (self->flags & POF_BUILTINS) {
728728
PyObject* cfunc = get_cfunc_from_callable(callable, self_arg, self->missing);
@@ -738,7 +738,7 @@ _lsprof_Profiler__ccall_callback_impl(ProfilerObject *self, PyObject *code,
738738
}
739739

740740
/*[clinic input]
741-
@critical_section self
741+
@critical_section
742742
_lsprof.Profiler._creturn_callback
743743
744744
code: object
@@ -754,7 +754,7 @@ _lsprof_Profiler__creturn_callback_impl(ProfilerObject *self, PyObject *code,
754754
PyObject *instruction_offset,
755755
PyObject *callable,
756756
PyObject *self_arg)
757-
/*[clinic end generated code: output=1e886dde8fed8fb0 input=7ef849de89bacd71]*/
757+
/*[clinic end generated code: output=1e886dde8fed8fb0 input=bdc246d6b5b8714a]*/
758758
{
759759
if (self->flags & POF_BUILTINS) {
760760
PyObject* cfunc = get_cfunc_from_callable(callable, self_arg, self->missing);
@@ -786,7 +786,7 @@ static const struct {
786786

787787

788788
/*[clinic input]
789-
@critical_section self
789+
@critical_section
790790
_lsprof.Profiler.enable
791791
792792
subcalls: bool = True
@@ -803,7 +803,7 @@ Start collecting profiling information.
803803
static PyObject *
804804
_lsprof_Profiler_enable_impl(ProfilerObject *self, int subcalls,
805805
int builtins)
806-
/*[clinic end generated code: output=1e747f9dc1edd571 input=b005b7cb7edcca88]*/
806+
/*[clinic end generated code: output=1e747f9dc1edd571 input=0b88115b1c796173]*/
807807
{
808808
int all_events = 0;
809809
if (setSubcalls(self, subcalls) < 0 || setBuiltins(self, builtins) < 0) {
@@ -876,15 +876,15 @@ flush_unmatched(ProfilerObject *pObj)
876876

877877

878878
/*[clinic input]
879-
@critical_section self
879+
@critical_section
880880
_lsprof.Profiler.disable
881881
882882
Stop collecting profiling information.
883883
[clinic start generated code]*/
884884

885885
static PyObject *
886886
_lsprof_Profiler_disable_impl(ProfilerObject *self)
887-
/*[clinic end generated code: output=838cffef7f651870 input=456ec13900aff222]*/
887+
/*[clinic end generated code: output=838cffef7f651870 input=f7e4787cae20f7f6]*/
888888
{
889889
if (self->flags & POF_EXT_TIMER) {
890890
PyErr_SetString(PyExc_RuntimeError,
@@ -936,15 +936,15 @@ _lsprof_Profiler_disable_impl(ProfilerObject *self)
936936
}
937937

938938
/*[clinic input]
939-
@critical_section self
939+
@critical_section
940940
_lsprof.Profiler.clear
941941
942942
Clear all profiling information collected so far.
943943
[clinic start generated code]*/
944944

945945
static PyObject *
946946
_lsprof_Profiler_clear_impl(ProfilerObject *self)
947-
/*[clinic end generated code: output=dd1c668fb84b1335 input=bdb218890fae64d7]*/
947+
/*[clinic end generated code: output=dd1c668fb84b1335 input=4aab219d5d7a9bec]*/
948948
{
949949
if (self->flags & POF_EXT_TIMER) {
950950
PyErr_SetString(PyExc_RuntimeError,
@@ -986,7 +986,7 @@ profiler_dealloc(PyObject *op)
986986
}
987987

988988
/*[clinic input]
989-
@critical_section self
989+
@critical_section
990990
_lsprof.Profiler.__init__ as profiler_init
991991
992992
timer: object(c_default='NULL') = None
@@ -1005,7 +1005,7 @@ is, in seconds).
10051005
static int
10061006
profiler_init_impl(ProfilerObject *self, PyObject *timer, double timeunit,
10071007
int subcalls, int builtins)
1008-
/*[clinic end generated code: output=ac523803ec9f9df2 input=7022aae930773bba]*/
1008+
/*[clinic end generated code: output=ac523803ec9f9df2 input=5add5fc72beb63ba]*/
10091009
{
10101010
if (setSubcalls(self, subcalls) < 0 || setBuiltins(self, builtins) < 0) {
10111011
return -1;

0 commit comments

Comments
 (0)