Skip to content

Commit

Permalink
gh-117657: Don't specialize RESUME_CHECK when specialization is disab…
Browse files Browse the repository at this point in the history
…led (GH-118349)
  • Loading branch information
Fidget-Spinner committed Apr 30, 2024
1 parent dc6b12d commit 7fabcc7
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 7fabcc7

Please sign in to comment.