Skip to content
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

bpo-33608: Simplify DISPATCH by hoisting eval_breaker ahead of time. #12062

Merged

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented Feb 27, 2019

@pitrou insightfully suggested hoisting the eval breaker ahead of time to mitigate any performance hit to ceval's DISPATCH. Regardless of the impact of PR #11617, it's likely a good idea.

Also, I found that the _Py_atomic_* macros had some problems, due to lack of parentheses where appropriate (FWIW, mostly introduced in 2017 in gh-2383). I've fixed those.

https://bugs.python.org/issue33608

Copy link
Member

@zooba zooba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ericsnowcurrently ericsnowcurrently merged commit bda918b into python:master Mar 1, 2019
@ericsnowcurrently ericsnowcurrently deleted the hoist-eval-breaker branch March 1, 2019 20:15
vstinner added a commit that referenced this pull request Mar 4, 2019
…ngCall(). (GH-11617) (GH-12159)

* Revert "bpo-36097: Use only public C-API in the_xxsubinterpreters module (adding as necessary). (#12003)"

This reverts commit bcfa450.

* Revert "bpo-33608: Simplify ceval's DISPATCH by hoisting eval_breaker ahead of time. (gh-12062)"

This reverts commit bda918b.

* Revert "bpo-33608: Use _Py_AddPendingCall() in _PyCrossInterpreterData_Release(). (gh-12024)"

This reverts commit b05b711.

* Revert "bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (GH-11617)"

This reverts commit ef4ac96.
@ericsnowcurrently ericsnowcurrently restored the hoist-eval-breaker branch March 8, 2019 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants