Title: gh-108634: Py_TRACE_REFS uses a hash table by vstinner · Pull Request #108663 · python/cpython · GitHub
Open Graph Title: gh-108634: Py_TRACE_REFS uses a hash table by vstinner · Pull Request #108663 · python/cpython
X Title: gh-108634: Py_TRACE_REFS uses a hash table by vstinner · Pull Request #108663 · python/cpython
Description: Python built with "configure --with-trace-refs" (tracing references) is now ABI compatible with Python release build and debug build. Moreover, it now also supports the Limited API. Change Py_TRACE_REFS build: Remove _PyObject_EXTRA_INIT macro. The PyObject structure no longer has two extra members (_ob_prev and _ob_next). Use a hash table (_Py_hashtable_t) to trace references (all objects): PyInterpreterState.object_state.refchain. Py_TRACE_REFS build is now ABI compatible with release build and debug build. Limited C API extensions can now be built with Py_TRACE_REFS: xxlimited, xxlimited_35, _testclinic_limited. No longer rename PyModule_Create2() and PyModule_FromDefAndSpec2() functions to PyModule_Create2TraceRefs() and PyModule_FromDefAndSpec2TraceRefs(). _Py_PrintReferenceAddresses() is now called before finalize_interp_delete() which deletes the refchain hash table. Test changes for Py_TRACE_REFS: Add test.support.Py_TRACE_REFS constant. Add test_sys.test_getobjects() to test sys.getobjects() function. test_exceptions skips test_recursion_normalizing_with_no_memory() and test_memory_error_in_PyErr_PrintEx() if Python is built with Py_TRACE_REFS. test_repl skips test_no_memory(). test_capi skisp test_set_nomemory(). Issue: gh-108634 📚 Documentation preview 📚: https://cpython-previews--108663.org.readthedocs.build/
Open Graph Description: Python built with "configure --with-trace-refs" (tracing references) is now ABI compatible with Python release build and debug build. Moreover, it now also supports the Limited API. Chang...
X Description: Python built with "configure --with-trace-refs" (tracing references) is now ABI compatible with Python release build and debug build. Moreover, it now also supports the Limited AP...
Opengraph URL: https://github.com/python/cpython/pull/108663
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:a54969f5-bb85-43cb-6c71-c73086135faa |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 86F8:87E17:180AB61:1FFAE48:696AE7A4 |
| html-safe-nonce | f1f6a930dc0a1e7df09c5090046c3c741f83eb8792aca2660bbface8354123fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkY4Ojg3RTE3OjE4MEFCNjE6MUZGQUU0ODo2OTZBRTdBNCIsInZpc2l0b3JfaWQiOiI0MDgxODg4MTE2MTczNjI5MzQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4278645913531e717e29772e050381c9a7a9aaa2f869d1abf8ffc52b71e0a9a6 |
| hovercard-subject-tag | pull_request:1494727795 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/108663/checks |
| twitter:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| og:image:alt | Python built with "configure --with-trace-refs" (tracing references) is now ABI compatible with Python release build and debug build. Moreover, it now also supports the Limited API. Chang... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| 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 full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width