]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-117457: Regen executor cases post PR #117477 (#117559)
authorErlend E. Aasland <erlend@python.org>
Fri, 5 Apr 2024 10:13:00 +0000 (12:13 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Apr 2024 10:13:00 +0000 (10:13 +0000)
Python/executor_cases.c.h

index 9c6e42a1a8e54f28f5303cf9a949f89049206d1c..a3447da00477ca0e0cd03e876fd789051f28ac3e 100644 (file)
         case _CHECK_STACK_SPACE_OPERAND: {
             uint32_t framesize = (uint32_t)CURRENT_OPERAND();
             assert(framesize <= INT_MAX);
-            if (!_PyThreadState_HasStackSpace(tstate, framesize)) JUMP_TO_JUMP_TARGET();
-            if (tstate->py_recursion_remaining <= 1) JUMP_TO_JUMP_TARGET();
+            if (!_PyThreadState_HasStackSpace(tstate, framesize)) {
+                UOP_STAT_INC(uopcode, miss);
+                JUMP_TO_JUMP_TARGET();
+            }
+            if (tstate->py_recursion_remaining <= 1) {
+                UOP_STAT_INC(uopcode, miss);
+                JUMP_TO_JUMP_TARGET();
+            }
             break;
         }