| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,2 @@ | |||
| 1 | + Fix an issue that could delay the specialization of :opcode:`PRECALL` | ||
| 2 | + instructions. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4793,7 +4793,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int | |||
| 4793 | 4793 | ||
| 4794 | 4794 | TARGET(PRECALL_ADAPTIVE) { | |
| 4795 | 4795 | _PyPrecallCache *cache = (_PyPrecallCache *)next_instr; | |
| 4796 | - if (cache->counter == 0) { | ||
| 4796 | + if (ADAPTIVE_COUNTER_IS_ZERO(cache)) { | ||
| 4797 | 4797 | next_instr--; | |
| 4798 | 4798 | int is_meth = is_method(stack_pointer, oparg); | |
| 4799 | 4799 | int nargs = oparg + is_meth; | |
@@ -4807,7 +4807,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int | |||
| 4807 | 4807 | } | |
| 4808 | 4808 | else { | |
| 4809 | 4809 | STAT_INC(PRECALL, deferred); | |
| 4810 | - cache->counter--; | ||
| 4810 | + DECREMENT_ADAPTIVE_COUNTER(cache); | ||
| 4811 | 4811 | JUMP_TO_INSTRUCTION(PRECALL); | |
| 4812 | 4812 | } | |
| 4813 | 4813 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments