-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-124855: Don't allow the JIT and perf support to be active at the same time #124856
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
Conversation
… the same time Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
Misc/NEWS.d/next/Core_and_Builtins/2024-10-01-17-31-32.gh-issue-124855.sdsv_H.rst
Show resolved
Hide resolved
Do we need to update the documentation here? https://docs.python.org/3.14/library/sys.html#sys.activate_stack_trampoline |
Good call! |
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
#ifdef _Py_JIT | ||
_PyOptimizerObject* optimizer = _Py_GetOptimizer(); | ||
if (optimizer != NULL) { | ||
PyErr_SetString(PyExc_ValueError, "Cannot activate the perf trampoline if the JIT is active"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're forgetting a Py_DECREF(optimizer)
I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pablogsal I'm pretty certain there's a refleak here :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On it, sorry I had this on auto-land and I missed your comment :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh oh!
There was an error while loading. Please reload this page.