qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC PATCH 04/13] qom: delete properties before calling


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [RFC PATCH 04/13] qom: delete properties before calling instance_finalize
Date: Wed, 11 Jun 2014 16:03:29 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Il 11/06/2014 15:42, Peter Crosthwaite ha scritto:
>
> -    object_deinit(obj, ti);
>      object_property_del_all(obj);
> +    object_deinit(obj, ti);
Does this means you lose access to your own properties before calling
your own finalisation? I guess its a non-issue if all clients just use
private fields directly, but it seems weird you cant use your own
getter at the end because it's dissappeared on you already.

It is just as weird that a property's finalizer cannot do its work because it needs something that instance_finalize has already freed. :)

This is important with the previous patch, that calls arbitrary code of children objects at finalization time.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]