[Xcb] [PATCH 7/7] Avoid reference cycles in response instances.

Julien Danjou julien at danjou.info
Thu Mar 22 13:42:10 PDT 2012


On Wed, Feb 29 2012, Alex Plotnick wrote:

> The issue is with fields that use self as the parent buffer; we end
> up with cycles that the GC can't collect, since buffer objects aren't
> GC-aware.
>
> Also took the opportunity to replace separate "count" variables with
> offsets wherever possible, and skip size calculations entirely for
> fixed-size Unions.

I've pushed your patch, since it seems OK to me. I'm not sure where it
helps exactly, but in the place you replaced `parent' by `self', it
makes sense anyway. :)

-- 
           Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20120322/1b686b90/attachment.pgp>


More information about the Xcb mailing list