GH-104584: Miscellaneous fixes for `-Xuops` by brandtbucher · Pull Request #106908 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Conversation
This fixes all of the tests that fail with the optimizer on.
By file:
Lib/dis.py: Teachdishow to parse bytecode containingENTER_EXECUTORorINSTRUMENTED_*instructions (by parsing the original code string instead and swapping in the adaptive opcodes at the last minute).- Fixes
test_dis.
- Fixes
Lib/test/test_capi/test_misc.pyandLib/test_dis.py: Modify the tests' expected behavior when an optimizer is active.- Fixes
test_disandtest_capi.
- Fixes
Python/bytecodes.c,Python/generated_cases.c.h, andPython/optimizer.c: Don't run the optimizer on instrumented back-edges.- Fixes
test_monitoring,test_sys_settrace, andtest_trace.
- Fixes
Python/executor_cases.c.handTools/cases_generator/generate_cases.py: Check the eval breaker when interpreting uops to avoid infinite closed loops.- Fixes
test_gdbandtest_os.
- Fixes
Python/pylifecycle.c: Fix refleak when installing optimizer.- Fixes
test_embed.
- Fixes
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!!!!!
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