Bug report
Bug description:
see discussion in #148124 (comment)
abc.register will change the tp_flags but don't update the type version, so JIT won't invalid the old trace:
|
_PyType_SetFlagsRecursive((PyTypeObject *)subclass, |
|
COLLECTION_FLAGS, |
|
collection_flag); |
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Bug report
Bug description:
see discussion in #148124 (comment)
abc.registerwill change thetp_flagsbut don't update thetype version, so JIT won't invalid the old trace:cpython/Modules/_abc.c
Lines 601 to 603 in 03d2f03
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response