FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-126204: Add a `sys._jit_enabled` helper by Eclips4 · Pull Request #126247 · python/cpython · GitHub

/ cpython Public
Closed
Show file tree
Hide file tree
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 .ac  (1) .in  (2) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Next Next commit
Fix configure
  • Loading branch information
Eclips4 committed Oct 31, 2024
commit 49e4fdcd8ae29bb183d62c3aaea8d4bb97813f98
4 changes: 2 additions & 2 deletions PC/pyconfig.h.in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ WIN32 is still required for the locale module.
/* #define Py_GIL_DISABLED 1 */
#endif

/* Define to 1 if you want to build an interpreter with JIT, or define to 2
* if you want to enable tier 2 interpreter */
/* Define to 1 if you want to build an interpreter with JIT, or define to 2 if
you want to enable tier 2 interpreter */
#ifndef Py_JIT_ENABLED
/* #define Py_JIT_ENABLED 1 */
#endif
Expand Down
8 changes: 4 additions & 4 deletions configure.ac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1827,22 +1827,22 @@ case $enable_experimental_jit in
yes)
jit_flags="-D_Py_JIT";
tier2_flags="-D_Py_TIER2=1";
AC_DEFINE([Py_JIT_ENABLED], [1], [Define to 1 if you want to build an interpreter with JIT])
AC_DEFINE([Py_JIT_ENABLED], [1], [Define to 1 if you want to build an interpreter with JIT, or define to 2 if you want to enable tier 2 interpreter])
;;
yes-off)
jit_flags="-D_Py_JIT";
tier2_flags="-D_Py_TIER2=3";
AC_DEFINE([Py_JIT_ENABLED], [1], [Define to 1 if you want to build an interpreter with JIT])
AC_DEFINE([Py_JIT_ENABLED], [1], [Define to 1 if you want to build an interpreter with JIT, or define to 2 if you want to enable tier 2 interpreter])
;;
interpreter)
jit_flags="";
tier2_flags="-D_Py_TIER2=4";
AC_DEFINE([Py_JIT_ENABLED], [2], [Define to 2 if you want to build an interpreter with enabled tier 2 interpreter])
AC_DEFINE([Py_JIT_ENABLED], [2], [Define to 1 if you want to build an interpreter with JIT, or define to 2 if you want to enable tier 2 interpreter])
;;
interpreter-off)
jit_flags="";
tier2_flags="-D_Py_TIER2=6";
AC_DEFINE([Py_JIT_ENABLED], [2], [Define to 2 if you want to build an interpreter with enabled tier 2 interpreter]) # Secret option
AC_DEFINE([Py_JIT_ENABLED], [2], [Define to 1 if you want to build an interpreter with JIT, or define to 2 if you want to enable tier 2 interpreter]) # Secret option
;;
*) AC_MSG_ERROR(
[invalid argument: --enable-experimental-jit=$enable_experimental_jit; expected no|yes|yes-off|interpreter]) ;;
Expand Down
4 changes: 2 additions & 2 deletions pyconfig.h.in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1695,8 +1695,8 @@
/* Defined if _Complex C type is available. */
#undef Py_HAVE_C_COMPLEX

/* Define to 1 if you want to build an interpreter with JIT, or define to 2
* if you want to enable tier 2 interpreter */
/* Define to 1 if you want to build an interpreter with JIT, or define to 2 if
you want to enable tier 2 interpreter */
#undef Py_JIT_ENABLED

/* Define if year with century should be normalized for strftime. */
Expand Down

Back | FazBrowse Home | New Git URL