summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2022-06-28 15:30:22 (GMT)
committerGitHub <noreply@github.com>2022-06-28 15:30:22 (GMT)
commit3b4f5ed1689e37ddeb2de4d817ed26a7477b442e (patch)
tree444778b2efe50d95e29a8f257d0b9a7a71698ee9 /Include
parent50a2e36ce9097b0f376780e2f996c30936095eec (diff)
downloadcpython-3b4f5ed1689e37ddeb2de4d817ed26a7477b442e.zip
cpython-3b4f5ed1689e37ddeb2de4d817ed26a7477b442e.tar.gz
cpython-3b4f5ed1689e37ddeb2de4d817ed26a7477b442e.tar.bz2
[3.11] GH-93516: Backport GH-93769 (GH-94231)
* Store offset of first traceable instruction to avoid having to recompute it all the time when tracing.
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/code.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/code.h b/Include/cpython/code.h
index 66cf4ec..ef8c642 100644
--- a/Include/cpython/code.h
+++ b/Include/cpython/code.h
@@ -91,6 +91,7 @@ typedef uint16_t _Py_CODEUNIT;
PyObject *co_weakreflist; /* to support weakrefs to code objects */ \
PyObject *_co_code; /* cached co_code object/attribute */ \
char *_co_linearray; /* array of line offsets */ \
+ int _co_firsttraceable; /* index of first traceable instruction */ \
/* Scratch space for extra data relating to the code object. \
Type is a void* to keep the format private in codeobject.c to force \
people to go through the proper APIs. */ \