Skip to content

Commit 8e62fd1

Browse files
Remove check on RESUME
1 parent 72368ed commit 8e62fd1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,7 @@ dummy_func(
171171
op(_QUICKEN_RESUME, (--)) {
172172
#if ENABLE_SPECIALIZATION_FT
173173
PyCodeObject *code = _PyFrame_GetCode(frame);
174-
if (tstate->tracing == 0 && this_instr->op.code == RESUME &&
175-
code != (PyCodeObject *)&_Py_InitCleanup && code != (PyCodeObject *)&_PyEntryFrameCode) {
174+
if (tstate->tracing == 0 && this_instr->op.code == RESUME) {
176175
FT_ATOMIC_STORE_UINT8_RELAXED(this_instr->op.code, RESUME_CHECK);
177176
}
178177
#endif /* ENABLE_SPECIALIZATION_FT */

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)