Title: bpo-36142: Add _PyPreConfig_SetAllocator() by vstinner · Pull Request #12187 · python/cpython · GitHub
Open Graph Title: bpo-36142: Add _PyPreConfig_SetAllocator() by vstinner · Pull Request #12187 · python/cpython
X Title: bpo-36142: Add _PyPreConfig_SetAllocator() by vstinner · Pull Request #12187 · python/cpython
Description: _PyPreConfig_Write() now reallocates the pre-configuration with the new memory allocator. It is no longer needed to force the "default raw memory allocator" to clear pre-configuration and core configuration. Simplify the code. _PyPreConfig_Write() now does nothing if called after Py_Initialize(): no longer check if the allocator is the same. Remove _PyMem_GetDebugAllocatorsName(): dev mode sets again allocator to "debug". https://bugs.python.org/issue36142
Open Graph Description: _PyPreConfig_Write() now reallocates the pre-configuration with the new memory allocator. It is no longer needed to force the "default raw memory allocator" to clear pre-configuration and...
X Description: _PyPreConfig_Write() now reallocates the pre-configuration with the new memory allocator. It is no longer needed to force the "default raw memory allocator" to clear pre-configura...
Opengraph URL: https://github.com/python/cpython/pull/12187
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7686ba2c-d1d1-9a4a-bbfd-a4539adfecd7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AD84:633B1:1D33C78:283859D:6A4EC49F |
| html-safe-nonce | a262b8393e9e57dd997448a0a4b8c9e16c44762dd795e9f805b05c16ade2418f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDg0OjYzM0IxOjFEMzNDNzg6MjgzODU5RDo2QTRFQzQ5RiIsInZpc2l0b3JfaWQiOiI3NTUyNjM1NDY4NTA1ODU5MjMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6c14dbf2566cbcf61758e8bb9bb1a1f7ef0f1da7ff4b07645480ff2af31cdcb9 |
| hovercard-subject-tag | pull_request:258529611 |
| 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/12187/files |
| 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 | _PyPreConfig_Write() now reallocates the pre-configuration with the new memory allocator. It is no longer needed to force the "default raw memory allocator" to clear pre-configuration and... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width