]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-116760: Fix pystats for trace attempts (GH-116761)
authorMichael Droettboom <mdboom@gmail.com>
Wed, 13 Mar 2024 22:13:33 +0000 (18:13 -0400)
committerGitHub <noreply@github.com>
Wed, 13 Mar 2024 22:13:33 +0000 (22:13 +0000)
commitcef0ec1a3ca40db69b56bcd736c1b3bb05a1cf48
tree6025d8fccc74cc13e7300870db12607e6c2099c2
parent8c6db45ce34df7081d7497e638daf3e130303295
gh-116760: Fix pystats for trace attempts (GH-116761)

There are now at least two bytecodes that may attempt to optimize,
JUMP_BACK, and more recently, COLD_EXIT.

Only the JUMP_BACK was counting the attempt in the stats.
This moves that counter to uop_optimize itself so it should
always happen no matter where it is called from.
Python/bytecodes.c
Python/generated_cases.c.h
Python/optimizer.c