[Python-Dev] Compact GC Header

Nick Coghlan ncoghlan at gmail.com
Wed May 30 09:16:52 EDT 2018


On 30 May 2018 at 20:43, Serhiy Storchaka <storchaka at gmail.com> wrote:

> 29.05.18 17:15, Steve Dower пише:
>
>> Looks like it breaks the 3.7 ABI, which is certainly not allowed at this
>> time. But it’s not a limited API structure, so no problem for 3.8.
>>
>
> Looks like it breaks only extensions that use private macros
> _PyObject_GC_TRACK, _PyObject_GC_UNTRACK and _PyObject_GC_IS_TRACKED. Those
> that use only public functions PyObject_GC_Track() and
> PyObject_GC_UnTrack() shouldn't be affected.


The ABI concern is with PyGC_Head changing size, as that's a public struct
definition in a public header - even though the macros for working with it
are marked as private, the struct itself isn't.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20180530/c1fe0bce/attachment.html>


More information about the Python-Dev mailing list