Title: gh-122306: Fix circular reference issue between MemoryView and PickleBuffer during garbage collection by marko1616 · Pull Request #123400 · python/cpython · GitHub
Open Graph Title: gh-122306: Fix circular reference issue between MemoryView and PickleBuffer during garbage collection by marko1616 · Pull Request #123400 · python/cpython
X Title: gh-122306: Fix circular reference issue between MemoryView and PickleBuffer during garbage collection by marko1616 · Pull Request #123400 · python/cpython
Description: Issues Issue:#122306 Main Causes Creating a circular reference through a constructed exception, preventing garbage collection of PickleBuffer and memory objects Calling gc.collect() During the collection of the memory object, PyMemoryViewObject->mbuf is cleared for the first time (mbuf is set to a null pointer) When collecting PickleBuffer, memory_dealloc is called again through picklebuf_clear, at which point an exception occurs because mbuf was set to a null pointer in step 3 Next I have no idea if this is a good way to fix this.But thank for any dev who reviewed this PR. Issue: gh-122306
Open Graph Description: Issues Issue:#122306 Main Causes Creating a circular reference through a constructed exception, preventing garbage collection of PickleBuffer and memory objects Calling gc.collect() During the c...
X Description: Issues Issue:#122306 Main Causes Creating a circular reference through a constructed exception, preventing garbage collection of PickleBuffer and memory objects Calling gc.collect() During the c...
Opengraph URL: https://github.com/python/cpython/pull/123400
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6d728de4-f31d-acf7-1bd8-4bf7ef0271f5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C1D0:234B42:86C3B4:B9ACCD:6A53913A |
| html-safe-nonce | 18c9bbb2fab3c941e01797d5b13b4cd58acb28435ea6799ac4eb1a3fd23e6d22 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUQwOjIzNEI0Mjo4NkMzQjQ6QjlBQ0NEOjZBNTM5MTNBIiwidmlzaXRvcl9pZCI6Ijc1NDIzNjE5NDUzODg4NDc0MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5bb88892c6c228db78e469f4bf98db0b5b1b325178e9ee3f0bf28ed54b8c29b3 |
| hovercard-subject-tag | pull_request:2040156759 |
| 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/123400/files |
| twitter:image | https://avatars.githubusercontent.com/u/45327989?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/45327989?s=400&v=4 |
| og:image:alt | Issues Issue:#122306 Main Causes Creating a circular reference through a constructed exception, preventing garbage collection of PickleBuffer and memory objects Calling gc.collect() During the 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 |
| 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