Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gh-126204: Add a sys._jit_enabled helper #126247

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

Closed
wants to merge 32 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
43740f7
Add `Py_JIT_ENABLED` variable to `pyconfig.h`
Eclips4 Oct 31, 2024
65e6cfa
Changes for Windows build
Eclips4 Oct 31, 2024
718b21e
fix typo
Eclips4 Oct 31, 2024
f4f1748
Another changes for Windows build
Eclips4 Oct 31, 2024
20d51dc
Update _sysconfig.c
Eclips4 Oct 31, 2024
a3e6dda
Don't set Py_JIT_ENABLED to 1 if --enable-experimental-jit=no
Eclips4 Oct 31, 2024
40c001c
Fixes for Windows build..
Eclips4 Oct 31, 2024
81994a9
Set Py_JIT_ENABLED to 2 insetad of 'interpreter'
Eclips4 Oct 31, 2024
1618433
PyLong_FromInt -> PyLong_FromLong
Eclips4 Oct 31, 2024
1773d9e
Fix typo in pyconfigs
Eclips4 Oct 31, 2024
9a50db7
Add a NEWS entry
Eclips4 Oct 31, 2024
4b4e212
Update documentation
Eclips4 Oct 31, 2024
19ddff2
Fix typo
Eclips4 Oct 31, 2024
91b7a78
Move NEWS entry
Eclips4 Oct 31, 2024
e79e0df
Fix typo in path
Eclips4 Oct 31, 2024
759321b
Fix doc formatting
Eclips4 Oct 31, 2024
49e4fdc
Fix configure
Eclips4 Oct 31, 2024
169831e
Revert previous changes
Eclips4 Nov 5, 2024
c83ea49
Revert other part of previous changes
Eclips4 Nov 5, 2024
1dec18a
Merge branch 'main' into add-py-jit
Eclips4 Nov 9, 2024
02d1f60
Add ``sys._jit_enabled``
Eclips4 Nov 10, 2024
a9c5b41
Add a ``NEWS`` entry
Eclips4 Nov 10, 2024
5423c71
Fix typo
Eclips4 Nov 10, 2024
49336ab
Apply suggestions from code review
Eclips4 Nov 10, 2024
67123ee
Add documentation for sys._jit_enabled and what's new entry.
Eclips4 Nov 10, 2024
4ddcd62
``availability`` only works for platforms :(
Eclips4 Nov 10, 2024
aa8f5bb
Apply suggestions from code review
Eclips4 Nov 10, 2024
0b5bce8
Align indentation
Eclips4 Nov 10, 2024
0ffcd9f
Remove unnecessary check
Eclips4 Nov 10, 2024
b6c097b
Update Python/pylifecycle.c
Eclips4 Nov 10, 2024
b4dc9dc
Update Python/sysmodule.c
Eclips4 Nov 11, 2024
46a4a7f
Fix reference leak in error path
Eclips4 Nov 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
PyLong_FromInt -> PyLong_FromLong
  • Loading branch information
Eclips4 committed Oct 31, 2024
commit 1618433774bf645bac1792b38f96afccd4be0b0c
2 changes: 1 addition & 1 deletion Modules/_sysconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ _sysconfig_config_vars_impl(PyObject *module)
if (Py_JIT_ENABLED == 1) {
py_jit_enabled = _PyLong_GetOne();
} else {
py_jit_enabled = PyLong_FromInt(2);
py_jit_enabled = PyLong_FromLong(2);
}
#else
PyObject *py_jit_enabled = _PyLong_GetZero();
Expand Down