Title: gh-151119: Sync eval stack in LIST_APPEND on allocation failure by bhuvi27 · Pull Request #151538 · python/cpython · GitHub
Open Graph Title: gh-151119: Sync eval stack in LIST_APPEND on allocation failure by bhuvi27 · Pull Request #151538 · python/cpython
X Title: gh-151119: Sync eval stack in LIST_APPEND on allocation failure by bhuvi27 · Pull Request #151538 · python/cpython
Description: Fix a debug-build abort when LIST_APPEND fails to resize a list under simulated memory pressure (_testcapi.set_nomemory). Drop _PyList_AppendTakeRef from NON_ESCAPING_FUNCTIONS so the cases generator emits stack pointer save/restore around it, same as SET_ADD. Add test_list_append_nomemory_debug regression test. Fixes #151119 Issue: gh-151119
Open Graph Description: Fix a debug-build abort when LIST_APPEND fails to resize a list under simulated memory pressure (_testcapi.set_nomemory). Drop _PyList_AppendTakeRef from NON_ESCAPING_FUNCTIONS so the cases generat...
X Description: Fix a debug-build abort when LIST_APPEND fails to resize a list under simulated memory pressure (_testcapi.set_nomemory). Drop _PyList_AppendTakeRef from NON_ESCAPING_FUNCTIONS so the cases generat...
Opengraph URL: https://github.com/python/cpython/pull/151538
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0a9e9e4f-1d7f-da41-078e-bde923e363a7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E780:39F5AD:3D2F52:545A8E:6A537603 |
| html-safe-nonce | fc4e42a0c2a71802ca8bf145eddda7d35464c8997f7708e35d72d6afb7b508da |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzgwOjM5RjVBRDozRDJGNTI6NTQ1QThFOjZBNTM3NjAzIiwidmlzaXRvcl9pZCI6IjQ0NTMzMDg3MzE4MDQwNTUwNDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 043545a612cd9f373ec4bd87079c8073a31a4b3934d616cfcd8c2a984ae00157 |
| hovercard-subject-tag | pull_request:3874694784 |
| 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/151538/files |
| twitter:image | https://avatars.githubusercontent.com/u/15888476?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/15888476?s=400&v=4 |
| og:image:alt | Fix a debug-build abort when LIST_APPEND fails to resize a list under simulated memory pressure (_testcapi.set_nomemory). Drop _PyList_AppendTakeRef from NON_ESCAPING_FUNCTIONS so the cases generat... |
| 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