diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/specialize.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/specialize.c b/Python/specialize.c index a467f16..a794f14 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -302,7 +302,9 @@ _PyCode_Quicken(PyCodeObject *code) assert(opcode < MIN_INSTRUMENTED_OPCODE); int caches = _PyOpcode_Caches[opcode]; if (caches) { - instructions[i + 1].cache = adaptive_counter_warmup(); + // JUMP_BACKWARD counter counts up from 0 until it is > backedge_threshold + instructions[i + 1].cache = + opcode == JUMP_BACKWARD ? 0 : adaptive_counter_warmup(); i += caches; } } |