Title: [3.14] gh-116738: Fix thread-safety issue in re module for free threading (gh-141923) by miss-islington · Pull Request #141990 · python/cpython · GitHub
Open Graph Title: [3.14] gh-116738: Fix thread-safety issue in re module for free threading (gh-141923) by miss-islington · Pull Request #141990 · python/cpython
X Title: [3.14] gh-116738: Fix thread-safety issue in re module for free threading (gh-141923) by miss-islington · Pull Request #141990 · python/cpython
Description: Added atomic operations to scanner_begin() and scanner_end() to prevent race conditions on the executing flag in free-threaded builds. Also added tests for concurrent usage of the re module. Without the atomic operations, test_scanner_concurrent_access() triggers assert(self->executing) failures, or a thread sanitizer run emits errors. (cherry picked from commit bc9e63d) Co-authored-by: Alper alperyoney@fb.com Issue: gh-116738
Open Graph Description: Added atomic operations to scanner_begin() and scanner_end() to prevent race conditions on the executing flag in free-threaded builds. Also added tests for concurrent usage of the re module. Withou...
X Description: Added atomic operations to scanner_begin() and scanner_end() to prevent race conditions on the executing flag in free-threaded builds. Also added tests for concurrent usage of the re module. Withou...
Opengraph URL: https://github.com/python/cpython/pull/141990
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b4f12200-68a1-acb5-09b7-a02e2809729c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DD6C:3651F6:10E683D:1616B9C:696B1011 |
| html-safe-nonce | 653a7ca6ea6d9ab9a905f8c58312eb3820ba98c027c52a0e26bdb4e5800c4ae1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDZDOjM2NTFGNjoxMEU2ODNEOjE2MTZCOUM6Njk2QjEwMTEiLCJ2aXNpdG9yX2lkIjoiNjMwMTYwNDY2MTU5NjcyMTE2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4061be62e6b3d56dd78c6bf03cf246ee64069bb67a97773732665f01454f5d05 |
| hovercard-subject-tag | pull_request:3048879121 |
| 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/141990/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 | Added atomic operations to scanner_begin() and scanner_end() to prevent race conditions on the executing flag in free-threaded builds. Also added tests for concurrent usage of the re module. Withou... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width