Title: gh-117300: Use stop the world to make `sys._current_frames` and `sys._current_exceptions` thread-safe. by colesbury · Pull Request #117301 · python/cpython · GitHub
Open Graph Title: gh-117300: Use stop the world to make `sys._current_frames` and `sys._current_exceptions` thread-safe. by colesbury · Pull Request #117301 · python/cpython
X Title: gh-117300: Use stop the world to make `sys._current_frames` and `sys._current_exceptions` thread-safe. by colesbury · Pull Request #117301 · python/cpython
Description: This adds a stop the world pause to make the two functions thread-safe when the GIL is disabled. Additionally, the main test thread may call sys._current_exceptions() as soon as g_raised.set() is called. The background thread may not yet reach the leave_g.wait() line. Issue: gh-117300
Open Graph Description: This adds a stop the world pause to make the two functions thread-safe when the GIL is disabled. Additionally, the main test thread may call sys._current_exceptions() as soon as g_raised.set() is c...
X Description: This adds a stop the world pause to make the two functions thread-safe when the GIL is disabled. Additionally, the main test thread may call sys._current_exceptions() as soon as g_raised.set() is c...
Opengraph URL: https://github.com/python/cpython/pull/117301
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e07e6274-310c-8823-f051-8224532835ee |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E14A:153FD3:1ACE219:2466376:6A53698A |
| html-safe-nonce | 1dc8a6ff3a556b600daa8d4dd8aabb38913ee5d04acd0ed6be1eee7830b23f9a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTRBOjE1M0ZEMzoxQUNFMjE5OjI0NjYzNzY6NkE1MzY5OEEiLCJ2aXNpdG9yX2lkIjoiNjE4NTM4MDI4OTk1MTQ0MDc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2a18280fdd93a289854c6d20d846cdcbe181c70f7454812888b94078f6246f73 |
| hovercard-subject-tag | pull_request:1794903978 |
| 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/117301/files |
| twitter:image | https://avatars.githubusercontent.com/u/655866?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/655866?s=400&v=4 |
| og:image:alt | This adds a stop the world pause to make the two functions thread-safe when the GIL is disabled. Additionally, the main test thread may call sys._current_exceptions() as soon as g_raised.set() is c... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width