diff options
author | Mark Shannon <mark@hotpy.org> | 2022-02-22 17:18:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 17:18:10 (GMT) |
commit | 09487c11a582be1f20d34319a82cfaf72d5c27a5 (patch) | |
tree | b7f5c29f55707a439ed01cb591e3c2e261d346b4 /Python/ceval.c | |
parent | 77f31a91d55df2df79ac767690738081f27ad476 (diff) | |
download | cpython-09487c11a582be1f20d34319a82cfaf72d5c27a5.zip cpython-09487c11a582be1f20d34319a82cfaf72d5c27a5.tar.gz cpython-09487c11a582be1f20d34319a82cfaf72d5c27a5.tar.bz2 |
Fix reporting of specialization stats. (GH-31503)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 4d7c0d0..308271b 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -4691,6 +4691,7 @@ handle_eval_breaker: DEOPT_IF(func->func_version != cache1->func_version, CALL); PyCodeObject *code = (PyCodeObject *)func->func_code; DEOPT_IF(code->co_argcount != argcount, CALL); + STAT_INC(CALL, hit); InterpreterFrame *new_frame = _PyFrame_Push(tstate, func); if (new_frame == NULL) { goto error; @@ -4725,6 +4726,7 @@ handle_eval_breaker: DEOPT_IF(argcount > code->co_argcount, CALL); int minargs = cache1->min_args; DEOPT_IF(argcount < minargs, CALL); + STAT_INC(CALL, hit); InterpreterFrame *new_frame = _PyFrame_Push(tstate, func); if (new_frame == NULL) { goto error; |