Skip to content

Commit 3f212a4

Browse files
cleanup
1 parent cda3dce commit 3f212a4

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

Include/internal/pycore_ceval.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,10 +334,9 @@ _PyEval_SpecialMethodCanSuggest(PyObject *self, int oparg);
334334
#define _PY_EVAL_PLEASE_STOP_BIT (1U << 5)
335335
#define _PY_EVAL_EXPLICIT_MERGE_BIT (1U << 6)
336336
#define _PY_EVAL_JIT_INVALIDATE_COLD_BIT (1U << 7)
337-
#define _PY_EVAL_JIT_DO_NOT_REENTER (1U << 8)
338337

339338
/* Reserve a few bits for future use */
340-
#define _PY_EVAL_EVENTS_BITS 9
339+
#define _PY_EVAL_EVENTS_BITS 8
341340
#define _PY_EVAL_EVENTS_MASK ((1 << _PY_EVAL_EVENTS_BITS)-1)
342341

343342
static inline void

Python/bytecodes.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3049,8 +3049,7 @@ dummy_func(
30493049
/* If the eval breaker is set then stay in tier 1.
30503050
* This avoids any potentially infinite loops
30513051
* involving _RESUME_CHECK */
3052-
if (_Py_atomic_load_uintptr_relaxed(&tstate->eval_breaker) & (_PY_EVAL_EVENTS_MASK | _PY_EVAL_JIT_DO_NOT_REENTER)) {
3053-
_Py_unset_eval_breaker_bit(tstate, _PY_EVAL_JIT_DO_NOT_REENTER);
3052+
if (_Py_atomic_load_uintptr_relaxed(&tstate->eval_breaker) & _PY_EVAL_EVENTS_MASK) {
30543053
opcode = executor->vm_data.opcode;
30553054
oparg = (oparg & ~255) | executor->vm_data.oparg;
30563055
next_instr = this_instr;

Python/ceval_macros.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,6 @@ do { \
401401
next_instr = frame->instr_ptr + 1; \
402402
JUMP_TO_LABEL(error); \
403403
} \
404-
/* Progress made */ \
405-
if (next_instr != this_instr) { \
406-
_Py_unset_eval_breaker_bit(tstate, _PY_EVAL_JIT_DO_NOT_REENTER); \
407-
} \
408404
if (keep_tracing_bit) { \
409405
assert(tstate->interp->jit_state.code_curr_size == 2 || tstate->interp->jit_state.code_curr_size == 3); \
410406
ENTER_TRACING(); \

Python/generated_cases.c.h

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)