Skip to content

Commit 6ccc646

Browse files
committed
Set initial counter correctly
1 parent d04d9ac commit 6ccc646

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

Python/generated_cases.c.h

Lines changed: 15 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/specialize.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ _PyCode_Quicken(PyCodeObject *code)
429429
if (caches) {
430430
// The initial value depends on the opcode
431431
switch (opcode) {
432+
case FUNCTION_START:
432433
case JUMP_BACKWARD:
433434
instructions[i + 1].counter = initial_jump_backoff_counter();
434435
break;

0 commit comments

Comments
 (0)