Skip to content

Commit

Permalink
Use Py_FatalError for ENTER_EXECUTOR in non-TIER2 build
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Apr 30, 2024
1 parent 3c919bb commit d5a3ff0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Include/internal/pycore_opcode_metadata.h

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

2 changes: 1 addition & 1 deletion Include/internal/pycore_uop_metadata.h

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

2 changes: 1 addition & 1 deletion Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -2420,7 +2420,7 @@ dummy_func(
Py_INCREF(executor);
GOTO_TIER_TWO(executor);
#else
assert(0);
Py_FatalError("ENTER_EXECUTOR is not supported in this build");
#endif /* _Py_TIER2 */
}

Expand Down
2 changes: 1 addition & 1 deletion Python/generated_cases.c.h

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

1 change: 1 addition & 0 deletions Tools/cases_generator/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ def has_error_without_pop(op: parser.InstDef) -> bool:
"PyCell_New",
"PyFloat_AS_DOUBLE",
"_PyFrame_PushUnchecked",
"Py_FatalError",
)

ESCAPING_FUNCTIONS = (
Expand Down

0 comments on commit d5a3ff0

Please sign in to comment.