René's URL Explorer Experiment


Title: GH-118095: Make invalidating and clearing executors memory safe by markshannon · Pull Request #118459 · python/cpython · GitHub

Open Graph Title: GH-118095: Make invalidating and clearing executors memory safe by markshannon · Pull Request #118459 · python/cpython

X Title: GH-118095: Make invalidating and clearing executors memory safe by markshannon · Pull Request #118459 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: This fixes a crash when an executor forms a reference cycle with itself. This bug has been present for a while, but was only exposed by #118420. Also fixes another latent bug in _Py_Executors_Inval...

X Description: This fixes a crash when an executor forms a reference cycle with itself. This bug has been present for a while, but was only exposed by #118420. Also fixes another latent bug in _Py_Executors_Inval...

Opengraph URL: https://github.com/python/cpython/pull/118459

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:79164bf2-1800-2613-9550-88992e6d4a2a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id86B6:4BB79:421E0B7:544D004:6B0235A9
html-safe-nonce2a09386a399c8bff12a9e847778fb147142a0682665291209addff44af29155e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkI2OjRCQjc5OjQyMUUwQjc6NTQ0RDAwNDo2QjAyMzVBOSIsInZpc2l0b3JfaWQiOiIxNTYxNzkyNzgwODQ0NTQ1NDQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace16e4da1ede3206350a848b0b9f6ca5ad5edc87990ec1a6da5e9f5edf10528aa
hovercard-subject-tagpull_request:1849335204
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/118459/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/18bc05cf4985aad2d9faa6ddb2e6fa11e8ae4a94ba901317f433c61a11dbd522/python/cpython/pull/118459
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/18bc05cf4985aad2d9faa6ddb2e6fa11e8ae4a94ba901317f433c61a11dbd522/python/cpython/pull/118459
og:image:altThis fixes a crash when an executor forms a reference cycle with itself. This bug has been present for a while, but was only exposed by #118420. Also fixes another latent bug in _Py_Executors_Inval...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemarkshannon
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/118459#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F118459
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F118459
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/118459
Reloadhttps://github.com/python/cpython/pull/118459
Reloadhttps://github.com/python/cpython/pull/118459
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
faster-cpython:safe-executor-deallochttps://github.com/faster-cpython/cpython/tree/safe-executor-dealloc
Conversationhttps://github.com/python/cpython/pull/118459
Commits4 (4)https://github.com/python/cpython/pull/118459/commits
Checkshttps://github.com/python/cpython/pull/118459/checks
Files changedhttps://github.com/python/cpython/pull/118459/files
GH-118095: Make invalidating and clearing executors memory safehttps://github.com/python/cpython/pull/118459#top
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
faster-cpython:safe-executor-deallochttps://github.com/faster-cpython/cpython/tree/safe-executor-dealloc
https://github.com/markshannon
markshannonhttps://github.com/markshannon
May 1, 2024https://github.com/python/cpython/pull/118459#issue-2273090203
Please reload this pagehttps://github.com/python/cpython/pull/118459
#118420https://github.com/python/cpython/pull/118420
Increase the number of micro-ops that we can handle in tier 2 #118095https://github.com/python/cpython/issues/118095
Please reload this pagehttps://github.com/python/cpython/pull/118459
https://github.com/markshannon
Make invalidating and clearing executors memory safehttps://github.com/python/cpython/pull/118459/commits/5805184689d930ac0a7b36799b25a20f9d3e1960
5805184https://github.com/python/cpython/pull/118459/commits/5805184689d930ac0a7b36799b25a20f9d3e1960
https://github.com/markshannon
markshannonhttps://github.com/markshannon
gvanrossumhttps://github.com/gvanrossum
code ownerhttps://github.com/python/cpython/blob/fc7e1aa3c001bbce25973261fba457035719a559/.github/CODEOWNERS#L39
May 1, 2024 07:48https://github.com/python/cpython/pull/118459#event-12667994314
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 1, 2024 https://github.com/python/cpython/pull/118459#ref-issue-2252568347
Increase the number of micro-ops that we can handle in tier 2 #118095 https://github.com/python/cpython/issues/118095
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
May 1, 2024https://github.com/python/cpython/pull/118459#event-12667994975
https://github.com/markshannon
markshannonhttps://github.com/markshannon
May 1, 2024https://github.com/python/cpython/pull/118459#issuecomment-2088110764
Please reload this pagehttps://github.com/python/cpython/pull/118459
markshannonhttps://github.com/markshannon
May 1, 2024 08:53https://github.com/python/cpython/pull/118459#commits-pushed-6a54e06
https://github.com/markshannon
Invalidate in out of memory casehttps://github.com/python/cpython/pull/118459/commits/6a54e06735f16e305e207b7fcfc5f9ec7f682e77
6a54e06https://github.com/python/cpython/pull/118459/commits/6a54e06735f16e305e207b7fcfc5f9ec7f682e77
https://github.com/markshannon
Only specialize to RESUME_CHECK if opcode is RESUME. Respects executo…https://github.com/python/cpython/pull/118459/commits/62def6a5422fd06ea2a251a6db574383d7f854ac
62def6ahttps://github.com/python/cpython/pull/118459/commits/62def6a5422fd06ea2a251a6db574383d7f854ac
https://github.com/markshannon
markshannonhttps://github.com/markshannon
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
May 1, 2024https://github.com/python/cpython/pull/118459#event-12668396017
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
May 1, 2024 https://github.com/python/cpython/pull/118459#pullrequestreview-2033242920
View reviewed changes https://github.com/python/cpython/pull/118459/files/62def6a5422fd06ea2a251a6db574383d7f854ac
Python/optimizer.chttps://github.com/python/cpython/pull/118459/files/62def6a5422fd06ea2a251a6db574383d7f854ac#diff-de09f74c4306be5ef0284d665091976873569094d645a35b48467ea2a11d67f7
iritkatrielhttps://github.com/iritkatriel
May 1, 2024https://github.com/python/cpython/pull/118459#discussion_r1586032444
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/118459
markshannonhttps://github.com/markshannon
May 1, 2024https://github.com/python/cpython/pull/118459#discussion_r1586056904
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/118459
Python/optimizer.chttps://github.com/python/cpython/pull/118459/files/62def6a5422fd06ea2a251a6db574383d7f854ac#diff-de09f74c4306be5ef0284d665091976873569094d645a35b48467ea2a11d67f7
iritkatrielhttps://github.com/iritkatriel
May 1, 2024https://github.com/python/cpython/pull/118459#discussion_r1586035360
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/118459
markshannonhttps://github.com/markshannon
May 1, 2024https://github.com/python/cpython/pull/118459#discussion_r1586056303
Please reload this pagehttps://github.com/python/cpython/pull/118459
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/118459
gvanrossumhttps://github.com/gvanrossum
May 1, 2024https://github.com/python/cpython/pull/118459#discussion_r1586662756
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/118459
https://github.com/markshannon
Merge branch 'main' into safe-executor-deallochttps://github.com/python/cpython/pull/118459/commits/ae16cbc593729dd52689063d7fb200f2882a24f3
ae16cbchttps://github.com/python/cpython/pull/118459/commits/ae16cbc593729dd52689063d7fb200f2882a24f3
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
May 1, 2024 https://github.com/python/cpython/pull/118459#pullrequestreview-2033415418
View reviewed changes https://github.com/python/cpython/pull/118459/files/ae16cbc593729dd52689063d7fb200f2882a24f3
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
May 1, 2024https://github.com/python/cpython/pull/118459#event-12669010555
https://github.com/markshannon
markshannonhttps://github.com/markshannon
May 1, 2024https://github.com/python/cpython/pull/118459#issuecomment-2088269432
Please reload this pagehttps://github.com/python/cpython/pull/118459
https://github.com/markshannon
markshannonhttps://github.com/markshannon
f6fab21https://github.com/python/cpython/commit/f6fab21721c8aedc5dca97dbeb6292a067c19bf1
May 1, 2024https://github.com/python/cpython/pull/118459#event-12669147445
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
May 1, 2024https://github.com/python/cpython/pull/118459#event-12669147782
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
May 1, 2024https://github.com/python/cpython/pull/118459#issuecomment-2088319824
f6fab21https://github.com/python/cpython/commit/f6fab21721c8aedc5dca97dbeb6292a067c19bf1
the buildbot page in the devguidehttps://devguide.python.org/buildbots/
https://buildbot.python.org/all/#builders/1368/builds/882https://buildbot.python.org/all/#builders/1368/builds/882
f6fab21https://github.com/python/cpython/commit/f6fab21721c8aedc5dca97dbeb6292a067c19bf1
https://buildbot.python.org/all/#builders/1368/builds/882https://buildbot.python.org/all/#builders/1368/builds/882
Please reload this pagehttps://github.com/python/cpython/pull/118459
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
May 2, 2024 https://github.com/python/cpython/pull/118459#pullrequestreview-2034623006
View reviewed changes https://github.com/python/cpython/pull/118459/files/ae16cbc593729dd52689063d7fb200f2882a24f3
Python/optimizer.chttps://github.com/python/cpython/pull/118459/files/ae16cbc593729dd52689063d7fb200f2882a24f3#diff-de09f74c4306be5ef0284d665091976873569094d645a35b48467ea2a11d67f7
gvanrossumhttps://github.com/gvanrossum
May 1, 2024https://github.com/python/cpython/pull/118459#discussion_r1586930928
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/118459
SonicFieldhttps://github.com/SonicField
May 8, 2024 https://github.com/python/cpython/pull/118459#ref-commit-c37cca8
https://github.com/markshannon
https://github.com/SonicField
pythonGH-118095https://github.com/python/cpython/issues/118095
: Make invalidating and clearing executors memory safe (https://github.com/SonicField/cpython/commit/c37cca80d9ae6297b833e00b30f347d454b93b5a
…https://github.com/python/cpython/pull/118459
c37cca8https://github.com/SonicField/cpython/commit/c37cca80d9ae6297b833e00b30f347d454b93b5a
…pythonGH-118459https://github.com/python/cpython/pull/118459
https://github.com/markshannon
markshannonhttps://github.com/markshannon
August 6, 2024 10:19https://github.com/python/cpython/pull/118459#event-13776338441
https://github.com/sergey-miryanov
sergey-miryanovhttps://github.com/sergey-miryanov
Dec 12, 2025 https://github.com/python/cpython/pull/118459#ref-pullrequest-3712539041
gh-142476: fix memory leak when creating JIT executors #142492 https://github.com/python/cpython/pull/142492
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F118459
https://github.com/gvanrossum
gvanrossum https://github.com/gvanrossum
https://github.com/python/cpython/pull/118459/files/ae16cbc593729dd52689063d7fb200f2882a24f3
https://github.com/iritkatriel
iritkatriel https://github.com/iritkatriel
https://github.com/python/cpython/pull/118459/files/ae16cbc593729dd52689063d7fb200f2882a24f3
Please reload this pagehttps://github.com/python/cpython/pull/118459
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/118459
https://github.com/markshannon
https://github.com/bedevere-bot
https://github.com/iritkatriel
https://github.com/gvanrossum
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.