Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GH-104584: Miscellaneous fixes for-Xuops#106908

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
brandtbucher merged 6 commits intopython:mainfrombrandtbucher:uop-fixes
Jul 20, 2023

Conversation

brandtbucher
Copy link
Member

@brandtbucherbrandtbucher commentedJul 20, 2023
edited
Loading

This fixes all of the tests that fail with the optimizer on.

By file:

  • Lib/dis.py: Teachdis how to parse bytecode containingENTER_EXECUTOR orINSTRUMENTED_* instructions (by parsing the original code string instead and swapping in the adaptive opcodes at the last minute).
    • Fixestest_dis.
  • Lib/test/test_capi/test_misc.py andLib/test_dis.py: Modify the tests' expected behavior when an optimizer is active.
    • Fixestest_dis andtest_capi.
  • Python/bytecodes.c,Python/generated_cases.c.h, andPython/optimizer.c: Don't run the optimizer on instrumented back-edges.
    • Fixestest_monitoring,test_sys_settrace, andtest_trace.
  • Python/executor_cases.c.h andTools/cases_generator/generate_cases.py: Check the eval breaker when interpreting uops to avoid infinite closed loops.
    • Fixestest_gdb andtest_os.
  • Python/pylifecycle.c: Fix refleak when installing optimizer.
    • Fixestest_embed.

@brandtbucherbrandtbucher added type-bugAn unexpected behavior, bug, or error skip news interpreter-core(Objects, Python, Grammar, and Parser dirs) labelsJul 20, 2023
@brandtbucherbrandtbucher self-assigned thisJul 20, 2023
Copy link
Member

@gvanrossumgvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you!!!!!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@gvanrossumgvanrossumgvanrossum approved these changes

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

Assignees

@brandtbucherbrandtbucher

Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@brandtbucher@gvanrossum@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp