summaryrefslogtreecommitdiff
path: root/Include/frameobject.h
diff options
context:
space:
mode:
authorINADA Naoki <songofacandy@gmail.com>2016-12-24 20:19:08 +0900
committerINADA Naoki <songofacandy@gmail.com>2016-12-24 20:19:08 +0900
commitfebbf471bd550945621b470089b6c3dc872ae894 (patch)
treeb07486e53a983e83379fb435c668e9386fb974d8 /Include/frameobject.h
parent01918fc00e2dc9846abc9fcc70750f688221d59e (diff)
downloadcpython-febbf471bd550945621b470089b6c3dc872ae894.tar.gz
Issue #29049: Call _PyObject_GC_TRACK() lazily when calling Python function.
Calling function is up to 5% faster.
Diffstat (limited to 'Include/frameobject.h')
-rw-r--r--Include/frameobject.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Include/frameobject.h b/Include/frameobject.h
index 00c50933dc..616c611c7e 100644
--- a/Include/frameobject.h
+++ b/Include/frameobject.h
@@ -60,7 +60,11 @@ PyAPI_DATA(PyTypeObject) PyFrame_Type;
#define PyFrame_Check(op) (Py_TYPE(op) == &PyFrame_Type)
PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,
- PyObject *, PyObject *);
+ PyObject *, PyObject *);
+
+/* only internal use */
+PyFrameObject* _PyFrame_New_NoTrack(PyThreadState *, PyCodeObject *,
+ PyObject *, PyObject *);
/* The rest of the interface is specific for frame objects */