René's URL Explorer Experiment


Title: gh-132917: fix data race on `last_mem` in free-threading gc by kumaraditya303 · Pull Request #134692 · python/cpython · GitHub

Open Graph Title: gh-132917: fix data race on `last_mem` in free-threading gc by kumaraditya303 · Pull Request #134692 · python/cpython

X Title: gh-132917: fix data race on `last_mem` in free-threading gc by kumaraditya303 · Pull Request #134692 · python/cpython

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

Open Graph Description: This fixes the data race detected by tsan on last_mem. Details WARNING: ThreadSanitizer: data race (pid=21581) Write of size 8 at 0x560af591a378 by thread T61: #0 gc_collect_internal /home/re...

X Description: This fixes the data race detected by tsan on last_mem. Details WARNING: ThreadSanitizer: data race (pid=21581) Write of size 8 at 0x560af591a378 by thread T61: #0 gc_collect_internal /home/re...

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

X: @github

direct link

Domain: github.com

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:1a62274c-da2c-0b23-41ad-be4217695ec3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB24E:1F00E0:49BA67:632EF6:6A5340F2
html-safe-nonce3b9d7c746f504da913f2205ec5520744d364f631625a7e75a4b5b2be1cdb4073
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjRFOjFGMDBFMDo0OUJBNjc6NjMyRUY2OjZBNTM0MEYyIiwidmlzaXRvcl9pZCI6IjY3MTU0Njk0OTI2NjU5MjU4NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac93552ead6a1d254dd9501e520b798ef3219e895285cf35e2252da95a7f668afc
hovercard-subject-tagpull_request:2543232758
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/134692/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/af9b63c1b51e53c64b9b35ee72a5bc4d0b93ae6e17d24d4de1b5ffe34eef0c10/python/cpython/pull/134692
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/af9b63c1b51e53c64b9b35ee72a5bc4d0b93ae6e17d24d4de1b5ffe34eef0c10/python/cpython/pull/134692
og:image:altThis fixes the data race detected by tsan on last_mem. Details WARNING: ThreadSanitizer: data race (pid=21581) Write of size 8 at 0x560af591a378 by thread T61: #0 gc_collect_internal /home/re...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekumaraditya303
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/134692#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F134692
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F134692
Sign up https://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/134692
Reloadhttps://github.com/python/cpython/pull/134692
Reloadhttps://github.com/python/cpython/pull/134692
Please reload this pagehttps://github.com/python/cpython/pull/134692
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/134692
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
kumaraditya303:gc-fthttps://github.com/kumaraditya303/cpython/tree/gc-ft
Conversationhttps://github.com/python/cpython/pull/134692
Commits2 (2)https://github.com/python/cpython/pull/134692/commits
Checkshttps://github.com/python/cpython/pull/134692/checks
Files changedhttps://github.com/python/cpython/pull/134692/files
gh-132917: fix data race on last_mem in free-threading gc https://github.com/python/cpython/pull/134692#top
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
kumaraditya303:gc-fthttps://github.com/kumaraditya303/cpython/tree/gc-ft
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
May 26, 2025https://github.com/python/cpython/pull/134692#issue-3090253603
Please reload this pagehttps://github.com/python/cpython/pull/134692
GC performance regression in free threaded build #132917https://github.com/python/cpython/issues/132917
Please reload this pagehttps://github.com/python/cpython/pull/134692
https://github.com/kumaraditya303
fix data race on last_memhttps://github.com/python/cpython/pull/134692/commits/e359f937e10957f42bb23a791a2ac7cda3905793
e359f93https://github.com/python/cpython/pull/134692/commits/e359f937e10957f42bb23a791a2ac7cda3905793
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
topic-free-threading https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-free-threading
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
May 26, 2025https://github.com/python/cpython/pull/134692#event-17809308820
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
naschemehttps://github.com/nascheme
May 26, 2025 07:10https://github.com/python/cpython/pull/134692#event-17809315181
https://github.com/kumaraditya303
Merge branch 'main' into gc-fthttps://github.com/python/cpython/pull/134692/commits/b7235e1930a4a29725b2c716fcadb10380120db6
b7235e1https://github.com/python/cpython/pull/134692/commits/b7235e1930a4a29725b2c716fcadb10380120db6
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 26, 2025 https://github.com/python/cpython/pull/134692#ref-issue-3019575271
GC performance regression in free threaded build #132917 https://github.com/python/cpython/issues/132917
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
May 27, 2025 https://github.com/python/cpython/pull/134692#ref-issue-3094589810
Data race in gc_collect_internal on gcstate->last_mem #134801 https://github.com/python/cpython/issues/134801
https://github.com/colesbury
colesburyhttps://github.com/colesbury
May 27, 2025 https://github.com/python/cpython/pull/134692#pullrequestreview-2871893811
View reviewed changes https://github.com/python/cpython/pull/134692/files/b7235e1930a4a29725b2c716fcadb10380120db6
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 27, 2025https://github.com/python/cpython/pull/134692#event-17834766951
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
ac539e7https://github.com/python/cpython/commit/ac539e7e0d1622c61988f30c91acfd4c06521ced
May 27, 2025https://github.com/python/cpython/pull/134692#event-17834841514
Please reload this pagehttps://github.com/python/cpython/pull/134692
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
May 27, 2025https://github.com/python/cpython/pull/134692#issuecomment-2913338426
@kumaraditya303https://github.com/kumaraditya303
Please reload this pagehttps://github.com/python/cpython/pull/134692
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 27, 2025https://github.com/python/cpython/pull/134692#event-17834842212
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
May 27, 2025 17:12https://github.com/python/cpython/pull/134692#event-17834842312
miss-islingtonhttps://github.com/miss-islington
May 27, 2025 https://github.com/python/cpython/pull/134692#ref-commit-f241677
https://github.com/kumaraditya303
https://github.com/miss-islington
pythongh-132917https://github.com/python/cpython/issues/132917
: fix data race onhttps://github.com/miss-islington/cpython/commit/f24167774463fc3b2efa0f0192ea71b3fb0f9adc
last_memhttps://github.com/miss-islington/cpython/commit/f24167774463fc3b2efa0f0192ea71b3fb0f9adc
in free-threading gc (https://github.com/miss-islington/cpython/commit/f24167774463fc3b2efa0f0192ea71b3fb0f9adc
py…https://github.com/python/cpython/pull/134692
f241677https://github.com/miss-islington/cpython/commit/f24167774463fc3b2efa0f0192ea71b3fb0f9adc
…thonGH-134692https://github.com/python/cpython/pull/134692
ac539e7https://github.com/miss-islington/cpython/commit/ac539e7e0d1622c61988f30c91acfd4c06521ced
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 27, 2025https://github.com/python/cpython/pull/134692#issuecomment-2913338788
GH-134802https://github.com/python/cpython/pull/134802
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/134692
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
May 27, 2025https://github.com/python/cpython/pull/134692#event-17834844478
kumaraditya303https://github.com/kumaraditya303
May 27, 2025 https://github.com/python/cpython/pull/134692#ref-commit-cc81b63
https://github.com/miss-islington
https://github.com/kumaraditya303
[3.14]https://github.com/python/cpython/commit/cc81b63a7582217efe35dbc52bf061664ffdecea
gh-132917https://github.com/python/cpython/issues/132917
: fix data race onhttps://github.com/python/cpython/commit/cc81b63a7582217efe35dbc52bf061664ffdecea
last_memhttps://github.com/python/cpython/commit/cc81b63a7582217efe35dbc52bf061664ffdecea
in free-threading gc (https://github.com/python/cpython/commit/cc81b63a7582217efe35dbc52bf061664ffdecea
G…https://github.com/python/cpython/pull/134692
cc81b63https://github.com/python/cpython/commit/cc81b63a7582217efe35dbc52bf061664ffdecea
…H-134692https://github.com/python/cpython/pull/134692
#134802https://github.com/python/cpython/pull/134802
gh-132917https://github.com/python/cpython/issues/132917
GH-134692https://github.com/python/cpython/pull/134692
ac539e7https://github.com/python/cpython/commit/ac539e7e0d1622c61988f30c91acfd4c06521ced
Pranjal095https://github.com/Pranjal095
Jul 12, 2025 https://github.com/python/cpython/pull/134692#ref-commit-7f79296
https://github.com/kumaraditya303
https://github.com/Pranjal095
pythongh-132917https://github.com/python/cpython/issues/132917
: fix data race onhttps://github.com/Pranjal095/cpython/commit/7f79296916a0d029fca2f6684a0c0f5c06e56461
last_memhttps://github.com/Pranjal095/cpython/commit/7f79296916a0d029fca2f6684a0c0f5c06e56461
in free-threading gc (https://github.com/Pranjal095/cpython/commit/7f79296916a0d029fca2f6684a0c0f5c06e56461
py…https://github.com/python/cpython/pull/134692
7f79296https://github.com/Pranjal095/cpython/commit/7f79296916a0d029fca2f6684a0c0f5c06e56461
…thon#134692https://github.com/python/cpython/pull/134692
taegyunkimhttps://github.com/taegyunkim
Aug 4, 2025 https://github.com/python/cpython/pull/134692#ref-commit-bde9e98
https://github.com/kumaraditya303
https://github.com/taegyunkim
pythongh-132917https://github.com/python/cpython/issues/132917
: fix data race onhttps://github.com/taegyunkim/cpython/commit/bde9e9830c75245155c59ef390919f8682b2a0d7
last_memhttps://github.com/taegyunkim/cpython/commit/bde9e9830c75245155c59ef390919f8682b2a0d7
in free-threading gc (https://github.com/taegyunkim/cpython/commit/bde9e9830c75245155c59ef390919f8682b2a0d7
py…https://github.com/python/cpython/pull/134692
bde9e98https://github.com/taegyunkim/cpython/commit/bde9e9830c75245155c59ef390919f8682b2a0d7
…thon#134692https://github.com/python/cpython/pull/134692
gostak-ddhttps://github.com/gostak-dd
Jun 2, 2026 https://github.com/python/cpython/pull/134692#ref-commit-7cd10e1
https://github.com/kumaraditya303
https://github.com/gostak-dd
pythongh-132917https://github.com/python/cpython/issues/132917
: fix data race onhttps://github.com/gostak-dd/cpython/commit/7cd10e16c3f8f7220bc7b9d6d870563d20cef842
last_memhttps://github.com/gostak-dd/cpython/commit/7cd10e16c3f8f7220bc7b9d6d870563d20cef842
in free-threading gc (https://github.com/gostak-dd/cpython/commit/7cd10e16c3f8f7220bc7b9d6d870563d20cef842
py…https://github.com/python/cpython/pull/134692
7cd10e1https://github.com/gostak-dd/cpython/commit/7cd10e16c3f8f7220bc7b9d6d870563d20cef842
…thon#134692https://github.com/python/cpython/pull/134692
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%2F134692
https://github.com/colesbury
colesbury https://github.com/colesbury
https://github.com/python/cpython/pull/134692/files/b7235e1930a4a29725b2c716fcadb10380120db6
https://github.com/nascheme
nascheme https://github.com/nascheme
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
topic-free-threading https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-free-threading
Please reload this pagehttps://github.com/python/cpython/pull/134692
https://github.com/kumaraditya303
https://github.com/colesbury
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.