René's URL Explorer Experiment


Title: gh-157838: Merge biased refcounts on behalf of detached threads by kumaraditya303 · Pull Request #157839 · python/cpython · GitHub

Open Graph Title: gh-157838: Merge biased refcounts on behalf of detached threads by kumaraditya303 · Pull Request #157839 · python/cpython

X Title: gh-157838: Merge biased refcounts on behalf of detached threads by kumaraditya303 · Pull Request #157839 · python/cpython

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

Open Graph Description: Issue: Memory held for too long by the BRC queue while the owning thread is detached #157838

X Description: Issue: Memory held for too long by the BRC queue while the owning thread is detached #157838

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

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:b909ea25-54a9-9833-9511-3e3fab262155
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB72A:21BD98:321819E:3F87707:6B020610
html-safe-nonce153d0a5d9af539b585385cac6fce697c1c6106fff4f7d7c6b690d302879b5835
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzJBOjIxQkQ5ODozMjE4MTlFOjNGODc3MDc6NkIwMjA2MTAiLCJ2aXNpdG9yX2lkIjoiNzQzNjY2OTEwMDk2Mjc0MzgyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac672059398427f489d09fcdff8a7dd05ad61546190a9627ae8be21f44f4f3a0bf
hovercard-subject-tagpull_request:4582588770
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/157839/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7e1c2d75b9604f967c3835cd49253c86f61d5bead79d1951db142ec3aac10da9/python/cpython/pull/157839
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7e1c2d75b9604f967c3835cd49253c86f61d5bead79d1951db142ec3aac10da9/python/cpython/pull/157839
og:image:altIssue: Memory held for too long by the BRC queue while the owning thread is detached #157838
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekumaraditya303
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/157839#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F157839
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%2F157839
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/157839
Reloadhttps://github.com/python/cpython/pull/157839
Reloadhttps://github.com/python/cpython/pull/157839
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
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
kumaraditya303:brc-merge-detachedhttps://github.com/kumaraditya303/cpython/tree/brc-merge-detached
Conversationhttps://github.com/python/cpython/pull/157839
Commits4 (4)https://github.com/python/cpython/pull/157839/commits
Checkshttps://github.com/python/cpython/pull/157839/checks
Files changedhttps://github.com/python/cpython/pull/157839/files
gh-157838: Merge biased refcounts on behalf of detached threadshttps://github.com/python/cpython/pull/157839#top
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
kumaraditya303:brc-merge-detachedhttps://github.com/kumaraditya303/cpython/tree/brc-merge-detached
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Sep 20, 2026https://github.com/python/cpython/pull/157839#issue-5516061442
Please reload this pagehttps://github.com/python/cpython/pull/157839
Memory held for too long by the BRC queue while the owning thread is detached #157838https://github.com/python/cpython/issues/157838
Please reload this pagehttps://github.com/python/cpython/pull/157839
https://github.com/kumaraditya303
Merge biased refcounts on behalf of detached threadshttps://github.com/python/cpython/pull/157839/commits/649f49d4dc2f1ee29785817cdb259dc3e7e27f64
649f49dhttps://github.com/python/cpython/pull/157839/commits/649f49d4dc2f1ee29785817cdb259dc3e7e27f64
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
FFY00https://github.com/FFY00
ZeroIntensityhttps://github.com/ZeroIntensity
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
code ownershttps://github.com/python/cpython/blob/89c67a98aeebee80d4cddcca86d9e52ceea89874/.github/CODEOWNERS#L315
September 20, 2026 05:47https://github.com/python/cpython/pull/157839#event-31472608527
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 20, 2026 https://github.com/python/cpython/pull/157839#ref-issue-5515910851
Memory held for too long by the BRC queue while the owning thread is detached #157838 https://github.com/python/cpython/issues/157838
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
Sep 20, 2026https://github.com/python/cpython/pull/157839#event-31472609944
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
topic-free-threading https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-free-threading
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Sep 20, 2026https://github.com/python/cpython/pull/157839#event-31472610988
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
colesburyhttps://github.com/colesbury
mpagehttps://github.com/mpage
September 20, 2026 05:47https://github.com/python/cpython/pull/157839#event-31472615009
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Sep 20, 2026https://github.com/python/cpython/pull/157839#event-31472625958
https://github.com/dpdani
dpdanihttps://github.com/dpdani
Sep 21, 2026 https://github.com/python/cpython/pull/157839#pullrequestreview-5267057927
View reviewed changes https://github.com/python/cpython/pull/157839/files/649f49d4dc2f1ee29785817cdb259dc3e7e27f64
Python/pystate.chttps://github.com/python/cpython/pull/157839/files/649f49d4dc2f1ee29785817cdb259dc3e7e27f64#diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141
Please reload this pagehttps://github.com/python/cpython/pull/157839
https://github.com/colesbury
colesburyhttps://github.com/colesbury
Sep 22, 2026 https://github.com/python/cpython/pull/157839#pullrequestreview-5279698335
View reviewed changes https://github.com/python/cpython/pull/157839/files/649f49d4dc2f1ee29785817cdb259dc3e7e27f64
Python/brc.chttps://github.com/python/cpython/pull/157839/files/649f49d4dc2f1ee29785817cdb259dc3e7e27f64#diff-5b59cdc4d68f739f70c46678f068d0c849321527ceff8460bf36a31fb8152e3f
Please reload this pagehttps://github.com/python/cpython/pull/157839
https://github.com/kumaraditya303
address reviewshttps://github.com/python/cpython/pull/157839/commits/17efa9448e95aaf8d2848b142d5062d65faf0171
17efa94https://github.com/python/cpython/pull/157839/commits/17efa9448e95aaf8d2848b142d5062d65faf0171
https://github.com/colesbury
colesburyhttps://github.com/colesbury
Sep 22, 2026 https://github.com/python/cpython/pull/157839#pullrequestreview-5284853157
View reviewed changes https://github.com/python/cpython/pull/157839/files/17efa9448e95aaf8d2848b142d5062d65faf0171
colesburyhttps://github.com/colesbury
https://github.com/python/cpython/pull/157839#pullrequestreview-5284853157
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/157839
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
Sep 22, 2026https://github.com/python/cpython/pull/157839#event-31637392318
kumaraditya303https://github.com/kumaraditya303
September 23, 2026 20:00https://github.com/python/cpython/pull/157839#commits-pushed-b9f0061
https://github.com/kumaraditya303
add news and testhttps://github.com/python/cpython/pull/157839/commits/b9f00618b3046ab3f55958983594df6096f41f96
b9f0061https://github.com/python/cpython/pull/157839/commits/b9f00618b3046ab3f55958983594df6096f41f96
https://github.com/kumaraditya303
Merge branch 'main' into brc-merge-detachedhttps://github.com/python/cpython/pull/157839/commits/8210b9c299ff38b23dc1a034fa1c0c5120eda094
8210b9chttps://github.com/python/cpython/pull/157839/commits/8210b9c299ff38b23dc1a034fa1c0c5120eda094
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
030e913https://github.com/python/cpython/commit/030e913a742cef279c34349a3d3899feef07c73e
Sep 23, 2026https://github.com/python/cpython/pull/157839#event-31692729743
Please reload this pagehttps://github.com/python/cpython/pull/157839
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Sep 23, 2026https://github.com/python/cpython/pull/157839#issuecomment-5798764903
@kumaraditya303https://github.com/kumaraditya303
Please reload this pagehttps://github.com/python/cpython/pull/157839
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
September 23, 2026 16:39https://github.com/python/cpython/pull/157839#event-31692733205
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
Sep 23, 2026https://github.com/python/cpython/pull/157839#event-31692733329
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Sep 23, 2026https://github.com/python/cpython/pull/157839#issuecomment-5798766051
@kumaraditya303https://github.com/kumaraditya303
cherry_pickerhttps://pypi.org/project/cherry-picker/
Please reload this pagehttps://github.com/python/cpython/pull/157839
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
kumaraditya303https://github.com/kumaraditya303
Sep 23, 2026https://github.com/python/cpython/pull/157839#event-31692740461
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Sep 23, 2026https://github.com/python/cpython/pull/157839#issuecomment-5798766964
@kumaraditya303https://github.com/kumaraditya303
cherry_pickerhttps://pypi.org/project/cherry-picker/
Please reload this pagehttps://github.com/python/cpython/pull/157839
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 23, 2026https://github.com/python/cpython/pull/157839#issuecomment-5798871114
GH-158011https://github.com/python/cpython/pull/158011
3.15 branchhttps://github.com/python/cpython/tree/3.15
Please reload this pagehttps://github.com/python/cpython/pull/157839
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Sep 23, 2026https://github.com/python/cpython/pull/157839#event-31693190748
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 23, 2026https://github.com/python/cpython/pull/157839#issuecomment-5798885124
GH-158012https://github.com/python/cpython/pull/158012
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/157839
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
Sep 23, 2026https://github.com/python/cpython/pull/157839#event-31693246032
https://github.com/colesbury
colesburyhttps://github.com/colesbury
Sep 25, 2026 https://github.com/python/cpython/pull/157839#ref-pullrequest-4789438907
gh-151518: Avoid STW starvation of attaching threads #152826 https://github.com/python/cpython/pull/152826
[3.15] gh-151518: Avoid STW starvation of attaching threads (GH-152826) #158186 https://github.com/python/cpython/pull/158186
[3.14] gh-151518: Avoid STW starvation of attaching threads (GH-152826) #158187 https://github.com/python/cpython/pull/158187
kumaraditya303https://github.com/kumaraditya303
Sep 29, 2026 https://github.com/python/cpython/pull/157839#ref-commit-6daaf3b
https://github.com/kumaraditya303
[3.14]https://github.com/python/cpython/commit/6daaf3b2a62baf2fb520cb6aeeb493a171669a03
gh-157838https://github.com/python/cpython/issues/157838
: Merge biased refcounts on behalf of detached threads (https://github.com/python/cpython/commit/6daaf3b2a62baf2fb520cb6aeeb493a171669a03
6daaf3bhttps://github.com/python/cpython/commit/6daaf3b2a62baf2fb520cb6aeeb493a171669a03
#157839https://github.com/python/cpython/pull/157839
#158012https://github.com/python/cpython/pull/158012
hugovkhttps://github.com/hugovk
Sep 29, 2026 https://github.com/python/cpython/pull/157839#ref-commit-e538c26
https://github.com/kumaraditya303
[3.15]https://github.com/python/cpython/commit/e538c268162484a36fe66f7dcbc8d9b178c9946a
gh-157838https://github.com/python/cpython/issues/157838
: Merge biased refcounts on behalf of detached threads (https://github.com/python/cpython/commit/e538c268162484a36fe66f7dcbc8d9b178c9946a
e538c26https://github.com/python/cpython/commit/e538c268162484a36fe66f7dcbc8d9b178c9946a
#157839https://github.com/python/cpython/pull/157839
#158011https://github.com/python/cpython/pull/158011
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Sep 29, 2026https://github.com/python/cpython/pull/157839#issuecomment-5885799156
e538c26https://github.com/python/cpython/commit/e538c268162484a36fe66f7dcbc8d9b178c9946a
the buildbot page in the devguidehttps://devguide.python.org/buildbots/
https://buildbot.python.org/#/builders/2293/builds/76https://buildbot.python.org/#/builders/2293/builds/76
e538c26https://github.com/python/cpython/commit/e538c268162484a36fe66f7dcbc8d9b178c9946a
https://buildbot.python.org/#/builders/2293/builds/76https://buildbot.python.org/#/builders/2293/builds/76
Please reload this pagehttps://github.com/python/cpython/pull/157839
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%2F157839
https://github.com/colesbury
colesbury https://github.com/colesbury
https://github.com/python/cpython/pull/157839/files/17efa9448e95aaf8d2848b142d5062d65faf0171
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/ZeroIntensity
ZeroIntensity https://github.com/ZeroIntensity
https://github.com/FFY00
FFY00 https://github.com/FFY00
https://github.com/mpage
mpage https://github.com/mpage
https://github.com/dpdani
dpdani https://github.com/dpdani
https://github.com/python/cpython/pull/157839/files/649f49d4dc2f1ee29785817cdb259dc3e7e27f64
Please reload this pagehttps://github.com/python/cpython/pull/157839
https://github.com/kumaraditya303
kumaraditya303 https://github.com/kumaraditya303
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/157839
https://github.com/kumaraditya303
https://github.com/bedevere-bot
https://github.com/colesbury
https://github.com/dpdani
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.