Title: JIT: missing type watcher in _CHECK_ATTR_CLASS · Issue #148398 · python/cpython · GitHub
Open Graph Title: JIT: missing type watcher in _CHECK_ATTR_CLASS · Issue #148398 · python/cpython
X Title: JIT: missing type watcher in _CHECK_ATTR_CLASS · Issue #148398 · python/cpython
Description: Bug report Bug description: _CHECK_ATTR_CLASS calls sym_set_const(owner, type) without installing a type watcher. If the type mutates, the executor isn't invalidated. cpython/Python/optimizer_bytecodes.c Lines 224 to 228 in a059e85 } els...
Open Graph Description: Bug report Bug description: _CHECK_ATTR_CLASS calls sym_set_const(owner, type) without installing a type watcher. If the type mutates, the executor isn't invalidated. cpython/Python/optimizer_bytec...
X Description: Bug report Bug description: _CHECK_ATTR_CLASS calls sym_set_const(owner, type) without installing a type watcher. If the type mutates, the executor isn't invalidated. cpython/Python/optimizer_b...
Opengraph URL: https://github.com/python/cpython/issues/148398
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JIT: missing type watcher in _CHECK_ATTR_CLASS","articleBody":"# Bug report\n\n### Bug description:\n\n`_CHECK_ATTR_CLASS` calls `sym_set_const(owner, type)` without installing a type watcher. If the type mutates, the executor isn't invalidated.\n\nhttps://github.com/python/cpython/blob/a059e85866adb8ccd98d216b78428eb37fa70509/Python/optimizer_bytecodes.c#L224-L228\nShould install a watcher like `_GUARD_TYPE_VERSION` does:\nhttps://github.com/python/cpython/blob/a059e85866adb8ccd98d216b78428eb37fa70509/Python/optimizer_bytecodes.c#L246-L250\n\nFound by @Fidget-Spinner in https://github.com/python/cpython/pull/148394#discussion_r3068376606\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-148399\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/NekoAsakura","@type":"Person","name":"NekoAsakura"},"datePublished":"2026-04-11T18:54:19Z","url":"https://github.com/python/cpython/issues/148398"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:70672411-1ac1-1aae-2690-584e8737f1bb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE54:1F927B:1863F31:20294AF:6B02095E |
| html-safe-nonce | 50ebb2671336af6047a195800b4ef32d5314e998689b096494429a3436b0b9d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTU0OjFGOTI3QjoxODYzRjMxOjIwMjk0QUY6NkIwMjA5NUUiLCJ2aXNpdG9yX2lkIjoiNjg4MzcwNzYwOTM4NDM1NjE5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | efa6b206b98806fa22101aa09a6a39fd367a25c65ec009cb998164cfa5783d5f |
| hovercard-subject-tag | issue:4245526608 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/148398/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c60530910131d213cc6d4ebcc937bae28f60381b5e94ab6dbd38ecfae57eacb0/python/cpython/issues/148398 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c60530910131d213cc6d4ebcc937bae28f60381b5e94ab6dbd38ecfae57eacb0/python/cpython/issues/148398 |
| og:image:alt | Bug report Bug description: _CHECK_ATTR_CLASS calls sym_set_const(owner, type) without installing a type watcher. If the type mutates, the executor isn't invalidated. cpython/Python/optimizer_bytec... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NekoAsakura |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width