Title: GH-104584: Miscellaneous fixes for `-Xuops` by brandtbucher · Pull Request #106908 · python/cpython · GitHub
Open Graph Title: GH-104584: Miscellaneous fixes for `-Xuops` by brandtbucher · Pull Request #106908 · python/cpython
X Title: GH-104584: Miscellaneous fixes for `-Xuops` by brandtbucher · Pull Request #106908 · python/cpython
Description: This fixes all of the tests that fail with the optimizer on. By file: Lib/dis.py: Teach dis how to parse bytecode containing ENTER_EXECUTOR or INSTRUMENTED_* instructions (by parsing the original code string instead and swapping in the adaptive opcodes at the last minute). Fixes test_dis. Lib/test/test_capi/test_misc.py and Lib/test_dis.py: Modify the tests' expected behavior when an optimizer is active. Fixes test_dis and test_capi. Python/bytecodes.c, Python/generated_cases.c.h, and Python/optimizer.c: Don't run the optimizer on instrumented back-edges. Fixes test_monitoring, test_sys_settrace, and test_trace. Python/executor_cases.c.h and Tools/cases_generator/generate_cases.py: Check the eval breaker when interpreting uops to avoid infinite closed loops. Fixes test_gdb and test_os. Python/pylifecycle.c: Fix refleak when installing optimizer. Fixes test_embed. Issue: gh-104584
Open Graph Description: This fixes all of the tests that fail with the optimizer on. By file: Lib/dis.py: Teach dis how to parse bytecode containing ENTER_EXECUTOR or INSTRUMENTED_* instructions (by parsing the original ...
X Description: This fixes all of the tests that fail with the optimizer on. By file: Lib/dis.py: Teach dis how to parse bytecode containing ENTER_EXECUTOR or INSTRUMENTED_* instructions (by parsing the original ...
Opengraph URL: https://github.com/python/cpython/pull/106908
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:6b4fdbce-a3c3-4b1e-f392-640d2c186051 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | D8A6:2E7615:402919:53C6EE:696B4012 |
| html-safe-nonce | 5a08725c22a8665b7fd0721e45abd8f83af80b1e3ed2f26fd6fd7c804e84d6cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEE2OjJFNzYxNTo0MDI5MTk6NTNDNkVFOjY5NkI0MDEyIiwidmlzaXRvcl9pZCI6IjE0MDgwNTM2Mjc1OTM2Mzc5MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | db1abcf57165877f637ec46781e8f99acda73523202aa894e9af430e5b9bd418 |
| hovercard-subject-tag | pull_request:1442242725 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/106908/checks |
| twitter:image | https://avatars.githubusercontent.com/u/40968415?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40968415?s=400&v=4 |
| og:image:alt | This fixes all of the tests that fail with the optimizer on. By file: Lib/dis.py: Teach dis how to parse bytecode containing ENTER_EXECUTOR or INSTRUMENTED_* instructions (by parsing the original ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width