8000 gh-118335: Configure Tier 2 interpreter at build time by gvanrossum · Pull Request #118339 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-118335: Configure Tier 2 interpreter at build time #118339

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

Merged
merged 42 commits into from
May 1, 2024
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
1eb8fea
Step 1: replace 'python -Xuops' with 'configure --enable-experimental…
gvanrossum Apr 26, 2024
0863c17
Make JIT imply TIER2, for convenience
gvanrossum Apr 26, 2024
9e43331
Step 2: Remove all code from optimizer*.c unless TIER2; fix deps exce…
gvanrossum Apr 26, 2024
064de58
Remove TIER2 stuff from _testinternalcapi
gvanrossum Apr 26, 2024
13b8ef0
Fix test_dis.py: _opcode.get_executor() may raise RuntimeError
gvanrossum Apr 26, 2024
edbaeef
Fix test_regrtest (by tweaking without_getoptimizer)
gvanrossum Apr 26, 2024
9311198
Fix test_optimizer.py
gvanrossum Apr 26, 2024
300ae6d
Fix test_opcache
gvanrossum Apr 27, 2024
db911e4
Fix test_monitoring
gvanrossum Apr 27, 2024
8cb71dd
Fix test_capi.test_opt (by disabling unless get_optimizer exists)
gvanrossum Apr 27, 2024
7e79509
Fix _opcode.c
gvanrossum Apr 27, 2024
638b7ec
Fix warning in sysmodule.c
gvanrossum Apr 27, 2024
8fc905f
When compiling _testinternalcapi.c, define _Py_JIT
gvanrossum Apr 29, 2024
877a005
Try making WASI Debug recursion limit 400
gvanrossum Apr 29, 2024
e4464d4
Merge main into tier2-flag
gvanrossum Apr 29, 2024
ffd7722
Revert "Try making WASI Debug recursion limit 400"
gvanrossum Apr 30, 2024
6e2777b
Update jit/README.md to require LLVM 18 everywhere
gvanrossum Apr 30, 2024
f228a06
Rip out --enable-experimental-tier2, in favor of --enable-experimenta…
gvanrossum Apr 30, 2024
70e18a5
Rip out _Py_TIER2, replace with _Py_JIT
gvanrossum Apr 30, 2024
17f1674
configure: set _Py_JIT={1|3|4} (for now)
gvanrossum Apr 30, 2024
e23c688
Try making WASI Debug recursion limit 300
gvanrossum Apr 29, 2024
ebd8025
Revert "Rip out _Py_TIER2, replace with _Py_JIT"
gvanrossum Apr 30, 2024
e367c27
Make the configure script set both _Py_JIT and _Py_TIER2, as appropriate
gvanrossum Apr 30, 2024
8681813
Pass flag bit in _Py_TIER2 instead of _Py_JIT
gvanrossum Apr 30, 2024
8f89b3b
Honor default-off and PYTHON_JIT=0|1
gvanrossum Apr 30, 2024
fe94220
Add interpreter-default-off as secret menu item
gvanrossum Apr 30, 2024
2963ccb
Revert "Try making WASI Debug recursion limit 300"
gvanrossum Apr 30, 2024
783c3cc
Merge remote-tracking branch 'origin/main' into tier2-flag
gvanrossum Apr 30, 2024
f45f7ca
Also predefine _Py_TIER2 on Windows if UseJIT is true
gvanrossum Apr 30, 2024
391bd46
Trashcan consumes more C stack (experimental, targeting WASI Debug bu…
gvanrossum Apr 30, 2024
c5d8c0a
Update what's new for new --enable-experimental-jit options
gvanrossum Apr 30, 2024
f45bf67
Revert "Trashcan consumes more C stack (experimental, targeting WASI …
gvanrossum Apr 30, 2024
a6cc5ee
Just disable test_trashcan_16602 on WASI Debug builds
gvanrossum Apr 30, 2024
35cb5bd
Fix test_weakref :-(
gvanrossum Apr 30, 2024
8276a9a
Shorten to --enable-exerimental-jit=yes-off
gvanrossum Apr 30, 2024
f950e25
Tweak code in test/support/__init__.py without_optimizer()
gvanrossum Apr 30, 2024
6be70c0
Fix news blurb
gvanrossum Apr 30, 2024
fdbe440
Fix typo in _opcode.c
gvanrossum Apr 30, 2024
3c919bb
Shut up annoying warning
gvanrossum Apr 30, 2024
d5a3ff0
Use Py_FatalError for ENTER_EXECUTOR in non-TIER2 build
gvanrossum Apr 30, 2024
07c485e
Add --experimental-jit-{off|interpreter} to PCbuild/build.bat
gvanrossum May 1, 2024
a2d4f30
Revert "Shut up annoying warning"
gvanrossum May 1, 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
Revert "Shut up annoying warning"
Apparently makes the CI fuzzer unhappy.

This reverts commit 3c919bb.
  • Loading branch information
gvanrossum committed May 1, 2024
commit a2d4f30d3469ada0cf2a7e2433d40bbc2059b3b2
4 changes: 0 additions & 4 deletions Python/pystate.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,7 @@ free_interpreter(PyInterpreterState *interp)
}
}

#ifdef Py_DEBUG
static inline int check_interpreter_whence(long);
#endif

/* Get the interpreter state to a minimal consistent state.
Further init happens in pylifecycle.c before it can be used.
Expand Down Expand Up @@ -1125,7 +1123,6 @@ _PyInterpreterState_IsReady(PyInterpreterState *interp)
}


#ifdef Py_DEBUG
static inline int
check_interpreter_whence(long whence)
{
Expand All @@ -1137,7 +1134,6 @@ check_interpreter_whence(long whence)
}
return 0;
}
#endif

long
_PyInterpreterState_GetWhence(PyInterpreterState *interp)
Expand Down
Loading
0