]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108488: Initialize JUMP_BACKWARD cache to 0, not 17 (#108591)
authorGuido van Rossum <guido@python.org>
Tue, 29 Aug 2023 18:14:56 +0000 (11:14 -0700)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2023 18:14:56 +0000 (18:14 +0000)
commit59e46932c8d2dc6fe84a8cf144dde962838c0204
treef9d87d4f1f811d10dacb2011830a708a73a06273
parent4f22152713d008cdd7c1d373a0f0c8dcf30e217e
gh-108488: Initialize JUMP_BACKWARD cache to 0, not 17 (#108591)

This mis-initialization caused the executor optimization to kick in sooner than intended. It also set the lower 4 bits of the counter to `1` -- those bits are supposed to be reserved (the actual counter is in the upper 12 bits).
Lib/test/test_capi/test_misc.py
Misc/NEWS.d/next/Core and Builtins/2023-08-28-22-22-15.gh-issue-108488.e8-fxg.rst [new file with mode: 0644]
Python/specialize.c