Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.4k
Closed
Description
Code inprofile_trampoline function checks ifarg argument value is equal toNULL and in this case assignsPy_None to it
Lines 954 to 956 in88a7f66
| if (arg==NULL) { | |
| arg=Py_None; | |
| } |
The only place where
arg is used inprofile_trampoline is this callLine 959 in88a7f66
| PyObject*result=call_trampoline(tstate,self,frame,what,arg); |
But similar check is already done by
call_trampoline functionLine 930 in88a7f66
| stack[2]= (arg!=NULL) ?arg :Py_None; |
My suggestion is to remove excess check fromprofile_trampoline.
Linked PRs
Metadata
Metadata
Assignees
Labels
No labels