Uh oh!
There was an error while loading. Please reload this page.
gh-115124: Use _PyObject_ASSERT() in gc.c - #115125
Conversation
vstinner
commented
Feb 7, 2024
!buildbot Windows11 Bigmem |
bedevere-bot
commented
Feb 7, 2024
vstinner
commented
Feb 7, 2024
vstinner
commented
Feb 7, 2024
AMD64 Windows11 Bigmem PR job: https://buildbot.python.org/all/#/builders/1088/builds/308 |
2b625c7 to
3f8a768Comparevstinner
commented
Feb 12, 2024
@pablogsal: I rebased my PR. Would you mind to review the change? |
vstinner
commented
Feb 15, 2024
@colesbury@nascheme: Would you mind to review this change? |
colesbury
left a comment
There was a problem hiding this comment.
There's a compiler warning, but otherwise LGTM
| next isn't, so they can't | ||
| be the same */ | ||
| // wrasgc is reachable, but next isn't, so they can't be the same | ||
| _PyObject_ASSERT(wr, wrasgc != next); |
There was a problem hiding this comment.
There's a GitHub actions warning: I think this needs a (PyObject *) cast on wr.
There was a problem hiding this comment.
Alright, I missed that warning. It's now fixed.
pablogsal
left a comment
There was a problem hiding this comment.
LGTM modulo the compiler warning
Replace assert() with _PyObject_ASSERT() in gc.c to dump the object when an assertion fails.
vstinner
commented
Feb 15, 2024
@colesbury@pablogsal: Thanks for reviews. I rebased my PR on main, fixed the compiler warning, and enabled "auto-merge". |
Replace assert() with _PyObject_ASSERT() in gc.c to dump the object when an assertion fails.
Replace assert() with _PyObject_ASSERT() in gc.c to dump the object when an assertion fails.
Replace assert() with _PyObject_ASSERT() in gc.c to dump the object when an assertion fails.