summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorPablo Galindo <pablogsal@gmail.com>2022-02-03 22:56:59 (GMT)
committerPablo Galindo <pablogsal@gmail.com>2022-02-03 22:56:59 (GMT)
commitbd8b05395ad8877f4a065562444e117b1650c022 (patch)
tree62635cab257bf3217e660d2f0a6d52b9c96df8b5 /Include
parent276f38f0a237aa26337a8c0e7633488e2e89d722 (diff)
parentd1df81a730499cc6286d02afa6028a1e9c22bbbf (diff)
downloadcpython-bd8b05395ad8877f4a065562444e117b1650c022.zip
cpython-bd8b05395ad8877f4a065562444e117b1650c022.tar.gz
cpython-bd8b05395ad8877f4a065562444e117b1650c022.tar.bz2
Merge remote-tracking branch 'upstream/main'
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_frame.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/Include/internal/pycore_frame.h b/Include/internal/pycore_frame.h
index 85b9cf0..1ad1562 100644
--- a/Include/internal/pycore_frame.h
+++ b/Include/internal/pycore_frame.h
@@ -87,12 +87,12 @@ static inline void _PyFrame_StackPush(InterpreterFrame *f, PyObject *value) {
void _PyFrame_Copy(InterpreterFrame *src, InterpreterFrame *dest);
+/* Consumes reference to func */
static inline void
_PyFrame_InitializeSpecials(
InterpreterFrame *frame, PyFunctionObject *func,
PyObject *locals, int nlocalsplus)
{
- Py_INCREF(func);
frame->f_func = func;
frame->f_code = (PyCodeObject *)Py_NewRef(func->func_code);
frame->f_builtins = func->func_builtins;
@@ -166,9 +166,6 @@ _PyFrame_FastToLocalsWithError(InterpreterFrame *frame);
void
_PyFrame_LocalsToFast(InterpreterFrame *frame, int clear);
-InterpreterFrame *_PyThreadState_PushFrame(
- PyThreadState *tstate, PyFunctionObject *func, PyObject *locals);
-
extern InterpreterFrame *
_PyThreadState_BumpFramePointerSlow(PyThreadState *tstate, size_t size);
@@ -189,6 +186,7 @@ _PyThreadState_BumpFramePointer(PyThreadState *tstate, size_t size)
void _PyThreadState_PopFrame(PyThreadState *tstate, InterpreterFrame *frame);
+/* Consume reference to func */
InterpreterFrame *
_PyFrame_Push(PyThreadState *tstate, PyFunctionObject *func);