diff options
author | Mark Shannon <mark@hotpy.org> | 2023-06-02 10:46:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-02 10:46:18 (GMT) |
commit | 4bfa01b9d911ce9358cf1a453bee15554f8e4c07 (patch) | |
tree | bd61d8459bf30d42abf0be7258de91360bea434b /Include/cpython/code.h | |
parent | 601ae09f0c8eda213b9050892f5ce9b91f0aa522 (diff) | |
download | cpython-4bfa01b9d911ce9358cf1a453bee15554f8e4c07.zip cpython-4bfa01b9d911ce9358cf1a453bee15554f8e4c07.tar.gz cpython-4bfa01b9d911ce9358cf1a453bee15554f8e4c07.tar.bz2 |
GH-104584: Plugin optimizer API (GH-105100)
Diffstat (limited to 'Include/cpython/code.h')
-rw-r--r-- | Include/cpython/code.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Include/cpython/code.h b/Include/cpython/code.h index 6bead36..1b65b0d 100644 --- a/Include/cpython/code.h +++ b/Include/cpython/code.h @@ -76,6 +76,13 @@ typedef struct { int8_t line_delta; } _PyCoLineInstrumentationData; + +typedef struct { + int size; + int capacity; + struct _PyExecutorObject *executors[1]; +} _PyExecutorArray; + /* Main data structure used for instrumentation. * This is allocated when needed for instrumentation */ @@ -153,6 +160,7 @@ typedef struct { PyObject *co_qualname; /* unicode (qualname, for reference) */ \ PyObject *co_linetable; /* bytes object that holds location info */ \ PyObject *co_weakreflist; /* to support weakrefs to code objects */ \ + _PyExecutorArray *co_executors; /* executors from optimizer */ \ _PyCoCached *_co_cached; /* cached co_* attributes */ \ uint64_t _co_instrumentation_version; /* current instrumentation version */ \ _PyCoMonitoringData *_co_monitoring; /* Monitoring data */ \ |