SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 59 Python

bpo-29676: fix lsprof can't profile C method call. (GH523)

When LOAD_METHOD is used for calling C mehtod, PyMethodDescrObject
was passed to profilefunc from 5566bbb.
But lsprof traces only PyCFunctionObject. Additionally, there can be
some third party extension which assumes passed arg is
PyCFunctionObject without calling PyCFunction_Check().

So make PyCFunctionObject from PyMethodDescrObject when
tstate->c_profilefunc is set.
I
INADA Naoki committed
93fac8dd358cd0e85e7b59115db226ce685d3f6f
Parent: d36a716
Committed by GitHub <noreply@github.com> on 3/7/2017, 5:24:37 AM