-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
GH-120024: Remove CHECK_EVAL_BREAKER macro.
#122968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
7d3642c
5f2edfa
74fa180
6515e7f
4f93d7b
ff9fbb1
0b670ac
44eb38f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -148,12 +148,24 @@ dummy_func( | |
| }; | ||
|
|
||
| op(_CHECK_PERIODIC, (--)) { | ||
| CHECK_EVAL_BREAKER(); | ||
| _Py_CHECK_EMSCRIPTEN_SIGNALS_PERIODICALLY(); | ||
| QSBR_QUIESCENT_STATE(tstate); \ | ||
| if (_Py_atomic_load_uintptr_relaxed(&tstate->eval_breaker) & _PY_EVAL_EVENTS_MASK) { | ||
| if (_Py_HandlePending(tstate) != 0) { | ||
| GOTO_ERROR(error); \ | ||
| } | ||
| } | ||
| } | ||
|
|
||
| op(_CHECK_PERIODIC_NOT_YIELD_FROM, (--)) { | ||
| if ((oparg & RESUME_OPARG_LOCATION_MASK) < RESUME_AFTER_YIELD_FROM) { | ||
| CHECK_EVAL_BREAKER(); | ||
| _Py_CHECK_EMSCRIPTEN_SIGNALS_PERIODICALLY(); | ||
| QSBR_QUIESCENT_STATE(tstate); \ | ||
| if (_Py_atomic_load_uintptr_relaxed(&tstate->eval_breaker) & _PY_EVAL_EVENTS_MASK) { | ||
| if (_Py_HandlePending(tstate) != 0) { | ||
| GOTO_ERROR(error); \ | ||
| } | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can this be implemented as a macro that reuses
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing the macro is the point of this PR. Macros are opaque to the code generator, so we need to special case them (which is OK for something very common like
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I meant a macro instruction of the DSL.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, I see. |
||
| } | ||
| } | ||
|
|
||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.