8000 GH-133231: Add JIT utilities in `sys._jit` by brandtbucher · Pull Request #133233 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-133231: Add JIT utilities in sys._jit #133233

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 17 commits into from
May 5, 2025
Merged
Changes from 1 commit
Commits
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
operator.call -> _testcapi.pyobject_vectorcall
  • Loading branch information
brandtbucher committed May 5, 2025
commit 5d85f4f233aa65caaab99c3e7ad2d66a5aaccae2
4 changes: 2 additions & 2 deletions Lib/test/test_sys.py
Original file line number Diff line number Diff line change
Expand Up @@ -2214,8 +2214,8 @@ def test_jit_is_active(self):
available = sys._jit.is_available()
script = textwrap.dedent(
"""
import _testcapi
import _testinternalcapi
import operator
import sys

def frame_0_interpreter() -> None:
Expand All @@ -2230,7 +2230,7 @@ def frame_2_jit(expected: bool) -> None:
# Inlined into the last loop of frame_3_jit:
assert sys._jit.is_active() is expected
# Insert C frame:
operator.call(frame_1_interpreter)
_testcapi.pyobject_vectorcall(frame_1_interpreter, None, None)
assert sys._jit.is_active() is expected

def frame_3_jit() -> None:
Expand Down
Loading
0