summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_uops.h
diff options
context:
space:
mode:
authorIvin Lee <62840497+rdrf2838@users.noreply.github.com>2023-08-05 04:10:46 (GMT)
committerGitHub <noreply@github.com>2023-08-05 04:10:46 (GMT)
commit4e6fac7fcc31fc6198fcddc612688b0a05ff7ae4 (patch)
treed701e62ffe0cfef764c25c8eb2dd84ea3ebf0a5d /Include/internal/pycore_uops.h
parent05a824f294f1409f33e32f1799d5b413dcf24445 (diff)
downloadcpython-4e6fac7fcc31fc6198fcddc612688b0a05ff7ae4.zip
cpython-4e6fac7fcc31fc6198fcddc612688b0a05ff7ae4.tar.gz
cpython-4e6fac7fcc31fc6198fcddc612688b0a05ff7ae4.tar.bz2
gh-106608: make uop trace variable length (#107531)
Executors are now more like tuples.
Diffstat (limited to 'Include/internal/pycore_uops.h')
-rw-r--r--Include/internal/pycore_uops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_uops.h b/Include/internal/pycore_uops.h
index edb141c..57a5970 100644
--- a/Include/internal/pycore_uops.h
+++ b/Include/internal/pycore_uops.h
@@ -18,7 +18,7 @@ typedef struct {
typedef struct {
_PyExecutorObject base;
- _PyUOpInstruction trace[_Py_UOP_MAX_TRACE_LENGTH]; // TODO: variable length
+ _PyUOpInstruction trace[1];
} _PyUOpExecutorObject;
_PyInterpreterFrame *_PyUopExecute(