Title: [3.14] gh-136870: fix data race in `PyThreadState_Clear` on `sys_tracing_threads` (GH-136951) by miss-islington · Pull Request #136953 · python/cpython · GitHub
Open Graph Title: [3.14] gh-136870: fix data race in `PyThreadState_Clear` on `sys_tracing_threads` (GH-136951) by miss-islington · Pull Request #136953 · python/cpython
X Title: [3.14] gh-136870: fix data race in `PyThreadState_Clear` on `sys_tracing_threads` (GH-136951) by miss-islington · Pull Request #136953 · python/cpython
Description: In free-threading, multiple threads can be cleared concurrently as such the modifications on sys_tracing_threads should be done while holding the profile lock, otherwise it can race with other threads setting up profiling. (cherry picked from commit f183996) Co-authored-by: Kumar Aditya kumaraditya@python.org Issue: gh-136870
Open Graph Description: In free-threading, multiple threads can be cleared concurrently as such the modifications on sys_tracing_threads should be done while holding the profile lock, otherwise it can race with other thre...
X Description: In free-threading, multiple threads can be cleared concurrently as such the modifications on sys_tracing_threads should be done while holding the profile lock, otherwise it can race with other thre...
Opengraph URL: https://github.com/python/cpython/pull/136953
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:95896b6c-3b17-54d0-2407-206c0e4bf846 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 830C:1F372:CCBCED:1146D65:6A55B526 |
| html-safe-nonce | 39d154719ebab5e6866c49a6a88f5bbfb9e18cef8f31835a488dea3ba77f2119 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzBDOjFGMzcyOkNDQkNFRDoxMTQ2RDY1OjZBNTVCNTI2IiwidmlzaXRvcl9pZCI6IjI2NDI2MzA0Mjc2NzcxNDQzNTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f700b17104f00ebbabf8b7aefd5aa2e543d08b1bf0b2f599267ae54ee37d3fdb |
| hovercard-subject-tag | pull_request:2683108433 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/136953/files |
| twitter:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| og:image:alt | In free-threading, multiple threads can be cleared concurrently as such the modifications on sys_tracing_threads should be done while holding the profile lock, otherwise it can race with other thre... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 653fccf1e27344851c0d3de3fa6faa526197f072 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width