Title: Detect Py_TRACE_REFS at runtime and calculate object offsets accordingly by lostmsu · Pull Request #1426 · pythonnet/pythonnet · GitHub
Open Graph Title: Detect Py_TRACE_REFS at runtime and calculate object offsets accordingly by lostmsu · Pull Request #1426 · pythonnet/pythonnet
X Title: Detect Py_TRACE_REFS at runtime and calculate object offsets accordingly by lostmsu · Pull Request #1426 · pythonnet/pythonnet
Description: What does this implement/fix? Explain your changes. This gets rid of #if PYTHON_WITH_PYDEBUG by detecting if objects have reference tracing (e.g. Py_TRACE_REFS) enabled at runtime based on the offset of refcount field in a new object. Does this close any currently open issues? It should fix #1412 Any other comments? Slight refactoring had to be done to ensure initialization code does not depend on knowing field offsets until they actually become available.
Open Graph Description: What does this implement/fix? Explain your changes. This gets rid of #if PYTHON_WITH_PYDEBUG by detecting if objects have reference tracing (e.g. Py_TRACE_REFS) enabled at runtime based on the offs...
X Description: What does this implement/fix? Explain your changes. This gets rid of #if PYTHON_WITH_PYDEBUG by detecting if objects have reference tracing (e.g. Py_TRACE_REFS) enabled at runtime based on the offs...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/1426
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:2508eefa-3f3c-618e-a40c-a97136483ad1 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | B2BE:304AB8:F87D88:15BF9DD:69723102 |
| html-safe-nonce | 1013fed923d6baa0dd5335bf7b56315625fa626be2769c829bfef3e23c0cb928 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkJFOjMwNEFCODpGODdEODg6MTVCRjlERDo2OTcyMzEwMiIsInZpc2l0b3JfaWQiOiIyMjE5NTc2ODk2MzMwNTQzMzYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b311f319644505a3274e73e63f4294cb3243a3f489e9f6e1d9cb693a17f46776 |
| hovercard-subject-tag | pull_request:601910456 |
| 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/pythonnet/pythonnet/pull/1426/checks |
| twitter:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| og:image:alt | What does this implement/fix? Explain your changes. This gets rid of #if PYTHON_WITH_PYDEBUG by detecting if objects have reference tracing (e.g. Py_TRACE_REFS) enabled at runtime based on the offs... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2c16db4e575031f6e3be03e0437c1ab663e0b4643ba5cbbfba48c1e4fc056a11 |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| 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 | a12ab519e1537fa080535ea933f81d4fcef34da0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width