diff options
author | Pablo Galindo <pablogsal@gmail.com> | 2022-02-03 22:56:59 (GMT) |
---|---|---|
committer | Pablo Galindo <pablogsal@gmail.com> | 2022-02-03 22:56:59 (GMT) |
commit | bd8b05395ad8877f4a065562444e117b1650c022 (patch) | |
tree | 62635cab257bf3217e660d2f0a6d52b9c96df8b5 /Python/pystate.c | |
parent | 276f38f0a237aa26337a8c0e7633488e2e89d722 (diff) | |
parent | d1df81a730499cc6286d02afa6028a1e9c22bbbf (diff) | |
download | cpython-bd8b05395ad8877f4a065562444e117b1650c022.zip cpython-bd8b05395ad8877f4a065562444e117b1650c022.tar.gz cpython-bd8b05395ad8877f4a065562444e117b1650c022.tar.bz2 |
Merge remote-tracking branch 'upstream/main'
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 7746794..a85460c 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -2212,26 +2212,6 @@ _PyThreadState_BumpFramePointerSlow(PyThreadState *tstate, size_t size) return (InterpreterFrame *)base; } - -InterpreterFrame * -_PyThreadState_PushFrame(PyThreadState *tstate, PyFunctionObject *func, PyObject *locals) -{ - PyCodeObject *code = (PyCodeObject *)func->func_code; - int nlocalsplus = code->co_nlocalsplus; - size_t size = nlocalsplus + code->co_stacksize + - FRAME_SPECIALS_SIZE; - CALL_STAT_INC(frames_pushed); - InterpreterFrame *frame = _PyThreadState_BumpFramePointer(tstate, size); - if (frame == NULL) { - return NULL; - } - _PyFrame_InitializeSpecials(frame, func, locals, nlocalsplus); - for (int i=0; i < nlocalsplus; i++) { - frame->localsplus[i] = NULL; - } - return frame; -} - void _PyThreadState_PopFrame(PyThreadState *tstate, InterpreterFrame * frame) { |