qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1.3 5/5] qom: make object_finalize static


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 1.3 5/5] qom: make object_finalize static
Date: Fri, 23 Nov 2012 18:32:06 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1

Il 23/11/2012 18:12, Andreas Färber ha scritto:
> We have not yet started using the in-place mechanism much (i440fx and
> prep_pci patches, not in master; also my tegra branch), so I would like
> to keep this for symmetry with "initialize" vs. "new" and their
> distinguished semantics.

But you do not need it anymore.  When the last reference disappears,
everything is finalized.  So you just use ref/unref.  Delete is simply
unparent+unref, and applies just as well to objects that were
initialized in place.

The point of patch 3 is to get rid of the distinction between initialize
and new.  That distinction just shouldn't be there if you have reference
counting.

> It is not a bugfix anyway, so not needed for 1.3.

Fair enough.

Paolo



reply via email to

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