Skip to content

Commit

Permalink
pythongh-117657: Don't specialize RESUME_CHECK when specialization is…
Browse files Browse the repository at this point in the history
… disabled (pythonGH-118349)
  • Loading branch information
Fidget-Spinner authored and SonicField committed May 8, 2024
1 parent 6585a6f commit 09de650
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Python/bytecodes.c
Expand Up @@ -163,7 +163,9 @@ dummy_func(
if ((oparg & RESUME_OPARG_LOCATION_MASK) < RESUME_AFTER_YIELD_FROM) {
CHECK_EVAL_BREAKER();
}
#if ENABLE_SPECIALIZATION
FT_ATOMIC_STORE_UINT8_RELAXED(this_instr->op.code, RESUME_CHECK);
#endif /* ENABLE_SPECIALIZATION */
}
}

Expand Down
2 changes: 2 additions & 0 deletions Python/generated_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 09de650

Please sign in to comment.